]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] sched: arch preempt notifier mechanism
authorAvi Kivity <avi@qumranet.com>
Thu, 26 Jul 2007 11:40:43 +0000 (13:40 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 26 Jul 2007 11:40:43 +0000 (13:40 +0200)
commit93006df5e8f8583b7c289b18185ed8f521e38e62
tree655955aa81aefeff441c412adaafe9b51a00ff56
parent4be3f4665c8f70a8124e21d71a2e675795094ca8
[PATCH] sched: arch preempt notifier mechanism

This adds a general mechanism whereby a task can request the scheduler to
notify it whenever it is preempted or scheduled back in.  This allows the
task to swap any special-purpose registers like the fpu or Intel's VT
registers.

Signed-off-by: Avi Kivity <avi@qumranet.com>
[ mingo@elte.hu: fixes, cleanups ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/preempt.h
include/linux/sched.h
kernel/Kconfig.preempt
kernel/sched.c