patch-2.1.101 linux/arch/ppc/kernel/idle.c

Next file: linux/arch/ppc/kernel/irq.c
Previous file: linux/arch/ppc/kernel/head.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/arch/ppc/kernel/idle.c linux/arch/ppc/kernel/idle.c
@@ -1,5 +1,5 @@
 /*
- * $Id: idle.c,v 1.35 1998/04/07 20:24:23 cort Exp $
+ * $Id: idle.c,v 1.37 1998/04/26 06:59:12 cort Exp $
  *
  * Idle daemon for PowerPC.  Idle daemon will handle any action
  * that needs to be taken when the system becomes idle.
@@ -319,19 +319,18 @@
 	case 6:			/* 603e */
 	case 7:			/* 603ev */
 	case 8:			/* 750 */
-		break;
+		save_flags(msr);
+		cli();
+		if (!need_resched) {
+			asm("mfspr %0,1008" : "=r" (hid0) :);
+			hid0 &= ~(HID0_NAP | HID0_SLEEP | HID0_DOZE);
+			hid0 |= powersave_mode | HID0_DPM;
+			asm("mtspr 1008,%0" : : "r" (hid0));
+			msr |= MSR_POW;
+		}
+		restore_flags(msr);
 	default:
 		return;
 	}
 	
-	save_flags(msr);
-	cli();
-	if (!need_resched) {
-		asm("mfspr %0,1008" : "=r" (hid0) :);
-		hid0 &= ~(HID0_NAP | HID0_SLEEP | HID0_DOZE);
-		hid0 |= powersave_mode | HID0_DPM;
-		asm("mtspr 1008,%0" : : "r" (hid0));
-		msr |= MSR_POW;
-	}
-	restore_flags(msr);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov