[PATCH 2.6.12-rc5-mm1] m32r: Insert set_tsk_need_resched() to cpu_idle() (was Re: 2.6.12-rc5-mm1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrew Morton <[email protected]>
Subject: 2.6.12-rc5-mm1
Date: Wed, 25 May 2005 13:49:33 -0700
> - The CPU scheduler is probably busted on the less-common architectures. 
>   For now, those architectures will need to emulate
>   sched-remove-set_tsk_need_resched-from-init_idle-v2-ia64-fix.patch

Here is a patch for m32r.
Please apply.

Thanks,

Signed-off-by: Hirokazu Takata <[email protected]>
---

diff -ruNp a/arch/m32r/kernel/process.c b/arch/m32r/kernel/process.c
--- a/arch/m32r/kernel/process.c	2005-03-07 14:10:21.000000000 +0900
+++ b/arch/m32r/kernel/process.c	2005-05-31 10:49:03.000000000 +0900
@@ -94,6 +94,8 @@ static void poll_idle (void)
  */
 void cpu_idle (void)
 {
+	set_tsk_need_resched(current);
+
 	/* endless idle loop with no priority at all */
 	while (1) {
 		while (!need_resched()) {


--
Hirokazu Takata <[email protected]>
Linux/M32R Project:  http://www.linux-m32r.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux