patch-2.4.18 linux/arch/ppc/kernel/idle.c
Next file: linux/arch/ppc/kernel/irq.c
Previous file: linux/arch/ppc/kernel/i8259.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Wed Dec 26 16:28:34 2001
- Orig file:
linux.orig/arch/ppc/kernel/idle.c
- Orig date:
Mon Feb 18 20:18:39 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/arch/ppc/kernel/idle.c linux/arch/ppc/kernel/idle.c
@@ -1,5 +1,5 @@
/*
- * BK Id: SCCS/s.idle.c 1.16 10/16/01 15:58:42 trini
+ * BK Id: SCCS/s.idle.c 1.18 12/01/01 20:09:06 benh
*/
/*
* Idle daemon for PowerPC. Idle daemon will handle any action
@@ -58,7 +58,6 @@
init_idle();
for (;;) {
#ifdef CONFIG_SMP
-
if (!do_power_save) {
/*
* Deal with another CPU just having chosen a thread to
@@ -231,6 +230,13 @@
void power_save(void)
{
unsigned long hid0;
+ int nap = powersave_nap;
+
+ /* 7450 has no DOZE mode mode, we return if powersave_nap
+ * isn't enabled
+ */
+ if (!nap && cur_cpu_spec[smp_processor_id()]->cpu_features & CPU_FTR_SPEC7450)
+ return;
/*
* Disable interrupts to prevent a lost wakeup
* when going to sleep. This is necessary even with
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)