diff options
author | Mike Galbraith <[email protected]> | 2009-10-29 11:48:30 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-11-03 07:25:00 +0100 |
commit | b84ff7d6f1b7f8a43414e74d972ec4c8f3361db4 (patch) | |
tree | 7e8db08b8dd7d28780f3d08466928c907e5e0440 /lib/cpu-notifier-error-inject.c | |
parent | 6b9de613ae9c79b637e070136585dde029578065 (diff) |
sched: Fix kthread_bind() by moving the body of kthread_bind() to sched.c
Eric Paris reported that commit
f685ceacab07d3f6c236f04803e2f2f0dbcc5afb causes boot time
PREEMPT_DEBUG complaints.
[ 4.590699] BUG: using smp_processor_id() in preemptible [00000000] code: rmmod/1314
[ 4.593043] caller is task_hot+0x86/0xd0
Since kthread_bind() messes with scheduler internals, move the
body to sched.c, and lock the runqueue.
Reported-by: Eric Paris <[email protected]>
Signed-off-by: Mike Galbraith <[email protected]>
Tested-by: Eric Paris <[email protected]>
Cc: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
[ v2: fix !SMP build and clean up ]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions