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 | |
---|---|
File size: 813 bytes |
-
./arch/ia64/kernel/smp.c
old new int 328 328 smp_call_function (void (*func) (void *info), void *info, int nonatomic, int wait) 329 329 { 330 330 struct call_data_struct data; 331 int cpus = num_online_cpus()-1;331 int cpus; 332 332 333 if (!cpus) 333 spin_lock(&call_lock); 334 cpus = num_online_cpus()-1; 335 if (!cpus) { 336 spin_unlock(&call_lock); 334 337 return 0; 338 } 335 339 336 340 /* Can deadlock when called with interrupts disabled */ 337 341 WARN_ON(irqs_disabled()); … … smp_call_function (void (*func) (void *i 343 347 if (wait) 344 348 atomic_set(&data.finished, 0); 345 349 346 spin_lock(&call_lock);347 348 350 call_data = &data; 349 351 mb(); /* ensure store to call_data precedes setting of IPI_CALL_FUNC */ 350 352 send_IPI_allbutself(IPI_CALL_FUNC);
Note: See TracBrowser
for help on using the repository browser.