aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 19c0d5d16fef..15abf0833245 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3862,6 +3862,8 @@ int sched_setscheduler(struct task_struct *p, int policy,
3862 unsigned long flags; 3862 unsigned long flags;
3863 runqueue_t *rq; 3863 runqueue_t *rq;
3864 3864
3865 /* may grab non-irq protected spin_locks */
3866 BUG_ON(in_interrupt());
3865recheck: 3867recheck:
3866 /* double check policy once rq lock held */ 3868 /* double check policy once rq lock held */
3867 if (policy < 0) 3869 if (policy < 0)