patch-2.2.17 linux/arch/s390/kernel/process.c

Next file: linux/arch/s390/kernel/s390_ksyms.c
Previous file: linux/arch/s390/kernel/mathemu.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.16/arch/s390/kernel/process.c linux/arch/s390/kernel/process.c
@@ -57,7 +57,7 @@
 
 static psw_t wait_psw;
 
-#ifndef __SMP__
+#ifndef CONFIG_SMP
 static
 #endif
 int cpu_idle(void *unused)
@@ -69,7 +69,12 @@
 	wait_psw.mask = _WAIT_PSW_MASK;
 	wait_psw.addr = (unsigned long) &&idle_wakeup | 0x80000000L;
 	while(1) {
+#ifdef CONFIG_SMP
+                if (atomic_read(&global_bh_lock) == 0 &&
+                    (bh_mask & bh_active)) {
+#else
                 if (bh_mask & bh_active) {
+#endif
                         do_bottom_half();
                         continue;
                 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)