[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>
这个提交包含在:
Avi Kivity
2007-07-26 13:40:43 +02:00
提交者 Ingo Molnar
父节点 b47e8608a0
当前提交 e107be36ef
修改 4 个文件,包含 123 行新增2 行删除

查看文件

@@ -63,3 +63,6 @@ config PREEMPT_BKL
Say Y here if you are building a kernel for a desktop system.
Say N if you are unsure.
config PREEMPT_NOTIFIERS
bool