patch-2.1.113 linux/arch/m68k/kernel/process.c

Next file: linux/arch/m68k/kernel/setup.c
Previous file: linux/arch/m68k/kernel/m68k_defs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.112/linux/arch/m68k/kernel/process.c linux/arch/m68k/kernel/process.c
@@ -66,14 +66,14 @@
 	current->priority = -100;
 	current->counter = -100;
 	for (;;){
-		check_pgt_cache();
-		if (!need_resched)
+		if (!current->need_resched)
 #if defined(CONFIG_ATARI) && !defined(CONFIG_AMIGA) && !defined(CONFIG_MAC)
 			/* block out HSYNC on the atari (falcon) */
 			__asm__("stop #0x2200" : : : "cc");
 #else /* portable version */
 			__asm__("stop #0x2000" : : : "cc");
 #endif /* machine compilation types */ 
+		check_pgt_cache();
 		run_task_queue(&tq_scheduler);
 		schedule();
 	}

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