patch-2.1.124 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.123/linux/arch/ppc/kernel/idle.c linux/arch/ppc/kernel/idle.c
@@ -1,5 +1,5 @@
 /*
- * $Id: idle.c,v 1.48 1998/07/30 11:29:22 davem Exp $
+ * $Id: idle.c,v 1.50 1998/08/18 16:19:25 cort Exp $
  *
  * Idle daemon for PowerPC.  Idle daemon will handle any action
  * that needs to be taken when the system becomes idle.
@@ -53,8 +53,8 @@
 		__sti();
 		
 		/* endless loop with no priority at all */
-		current->priority = -100;
-		current->counter = -100;
+		current->priority = 0;
+		current->counter = 0;
 
 		check_pgt_cache();
 
@@ -69,6 +69,7 @@
 #ifndef __SMP__
 		if ( !current->need_resched ) power_save();
 #endif /* __SMP__ */
+		run_task_queue(&tq_scheduler);
 		schedule();
 	}
 	ret = 0;

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