aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched/core.c2
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 }