]> bbs.cooldavid.org Git - net-next-2.6.git/commit - kernel/stop_machine.c
sched: Create special class for stop/migrate work
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 22 Sep 2010 11:53:15 +0000 (13:53 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 18 Oct 2010 16:41:58 +0000 (18:41 +0200)
commit34f971f6f7988be4d014eec3e3526bee6d007ffa
treea662e0701f81f019418b55aa1354f833277b9c40
parent4924627423d5e286136ad2520f5be536345ae590
sched: Create special class for stop/migrate work

In order to separate the stop/migrate work thread from the SCHED_FIFO
implementation, create a special class for it that is of higher priority than
SCHED_FIFO itself.

This currently solves a problem where cpu-hotplug consumes so much cpu-time
that the SCHED_FIFO class gets throttled, but has the bandwidth replenishment
timer pending on the now dead cpu.

It is also required for when we add the planned deadline scheduling class above
SCHED_FIFO, as the stop/migrate thread still needs to transcent those tasks.

Tested-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1285165776.2275.1022.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c
kernel/sched_stoptask.c [new file with mode: 0644]
kernel/stop_machine.c