]> git.neil.brown.name Git - history.git/commit
[PATCH] CPU Hotplug: restore Idle task's priority during CPU_DEAD notification
authorAndrew Morton <akpm@osdl.org>
Thu, 27 May 2004 00:36:14 +0000 (17:36 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 27 May 2004 00:36:14 +0000 (17:36 -0700)
commitfaf898a61ca5727d7857fb45407a0de77628f953
treee394c454e8919c7c59d886430bf4a817727c34f2
parent4ffa43b8c9b91ceda9af8d69b59c1877fe90c35e
[PATCH] CPU Hotplug: restore Idle task's priority during CPU_DEAD notification

From: Srivatsa Vaddagiri <vatsa@in.ibm.com>

Fix a CPU Hotplug problem wherein idle task's "->prio" value is not
restored to MAX_PRIO during CPU_DEAD handling.  Without this patch, once a
CPU is offlined and then later onlined, it becomes "more or less" useless
(does not run any task other than its idle task!)

Ingo said:

  The __setscheduler() call is (technically) incorrect because in the
  SCHED_NORMAL case the prio should be zero.  So it's a bit cleaner to set up
  the static priority to MAX_PRIO and then revert the policy to SCHED_NORMAL
  via __setscheduler().

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
kernel/sched.c