diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-07-25 17:00:29 -0400 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-08-07 03:47:03 -0400 |
| commit | 6a44f71b60d2019d64a052ec5d4fb63742e6e8ec (patch) | |
| tree | 5d225d0f2b03ad1593baa7886014079eb90eb4ce /kernel | |
| parent | 277efe46abaf2c7b49b7b28417bc77ae40445be2 (diff) | |
Protect LITMUS^RT tasks from re-nicing
Assigning a nice value to LITMUS^RT tasks is meaningless. Bail out
early.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sched/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 344855ef752d..7eb42c4f9c75 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
| @@ -3762,7 +3762,7 @@ void set_user_nice(struct task_struct *p, long nice) | |||
| 3762 | * it wont have any effect on scheduling until the task is | 3762 | * it wont have any effect on scheduling until the task is |
| 3763 | * SCHED_FIFO/SCHED_RR: | 3763 | * SCHED_FIFO/SCHED_RR: |
| 3764 | */ | 3764 | */ |
| 3765 | if (task_has_rt_policy(p)) { | 3765 | if (task_has_rt_policy(p) || is_realtime(p)) { |
| 3766 | p->static_prio = NICE_TO_PRIO(nice); | 3766 | p->static_prio = NICE_TO_PRIO(nice); |
| 3767 | goto out_unlock; | 3767 | goto out_unlock; |
| 3768 | } | 3768 | } |
