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

From: Hirokazu Takata
Date: Tue May 31 2005 - 07:01:50 EST


From: Andrew Morton <akpm@xxxxxxxx>
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 <takata@xxxxxxxxxxxxxx>
---

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 <takata@xxxxxxxxxxxxxx>
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/