diff options
| author | Steven Rostedt <[email protected]> | 2006-06-27 02:54:44 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-06-27 17:32:46 -0700 |
| commit | 66e5393a78b3fcca63e7748e38221dcca61c4aab (patch) | |
| tree | 57c5408e8e5596863f4abbe1c822bb0c1c7ff059 /scripts/basic/split-include.c | |
| parent | 9fea80e4d984d411aa188baa31225c273ebe0fe6 (diff) | |
[PATCH] BUG() if setscheduler is called from interrupt context
Thomas Gleixner is adding the call to a rtmutex function in setscheduler.
This call grabs a spin_lock that is not always protected by interrupts
disabled. So this means that setscheduler cant be called from interrupt
context.
To prevent this from happening in the future, this patch adds a
BUG_ON(in_interrupt()) in that function. (Thanks to akpm <aka. Andrew
Morton> for this suggestion).
Signed-off-by: Steven Rostedt <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions