]> git.hungrycats.org Git - linux/commit
[PATCH] Hotplug CPUs: Set prio of migration thread before CPU
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 19 Mar 2004 00:03:16 +0000 (16:03 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 19 Mar 2004 00:03:16 +0000 (16:03 -0800)
commite7243e1bdcb10e5f7edad7129390159cba999d44
treea6dc24530adf572d481c30fb67433ea61f84f64e
parent1329b6abc196900eb04d9bde358a313c945d54e9
[PATCH] Hotplug CPUs: Set prio of migration thread before CPU

We need the migration thread to be RT as soon as the CPU comes online:
for example, stop_machine() (another RT task) expects to yield to it.
Extract the core of setscheduler() and do that when the migration
thread is created.  rq lock is a precaution against the (theoretical)
possibility of someone else doing setscheduer on this thread at the
same time.
kernel/sched.c