source: trunk/packages/xen-3.1/xen-3.1/patches/linux-2.6.18/git-5ee7737379b1d7f0c977c0f1661fbaf01a8d4721.patch @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 813 bytes
  • ./arch/ia64/kernel/smp.c

    old new int 
    328328smp_call_function (void (*func) (void *info), void *info, int nonatomic, int wait)
    329329{
    330330        struct call_data_struct data;
    331         int cpus = num_online_cpus()-1;
     331        int cpus;
    332332
    333         if (!cpus)
     333        spin_lock(&call_lock);
     334        cpus = num_online_cpus()-1;
     335        if (!cpus) {
     336                spin_unlock(&call_lock);
    334337                return 0;
     338        }
    335339
    336340        /* Can deadlock when called with interrupts disabled */
    337341        WARN_ON(irqs_disabled());
    smp_call_function (void (*func) (void *i 
    343347        if (wait)
    344348                atomic_set(&data.finished, 0);
    345349
    346         spin_lock(&call_lock);
    347 
    348350        call_data = &data;
    349351        mb();   /* ensure store to call_data precedes setting of IPI_CALL_FUNC */
    350352        send_IPI_allbutself(IPI_CALL_FUNC);
Note: See TracBrowser for help on using the repository browser.