aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r--kernel/sched/core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 0a7251678982..084d17f89139 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3685,7 +3685,7 @@ SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr,
3685 if (retval) 3685 if (retval)
3686 return retval; 3686 return retval;
3687 3687
3688 if (attr.sched_policy < 0) 3688 if ((int)attr.sched_policy < 0)
3689 return -EINVAL; 3689 return -EINVAL;
3690 3690
3691 rcu_read_lock(); 3691 rcu_read_lock();
@@ -7751,8 +7751,7 @@ static int tg_set_cfs_bandwidth(struct task_group *tg, u64 period, u64 quota)
7751 /* restart the period timer (if active) to handle new period expiry */ 7751 /* restart the period timer (if active) to handle new period expiry */
7752 if (runtime_enabled && cfs_b->timer_active) { 7752 if (runtime_enabled && cfs_b->timer_active) {
7753 /* force a reprogram */ 7753 /* force a reprogram */
7754 cfs_b->timer_active = 0; 7754 __start_cfs_bandwidth(cfs_b, true);
7755 __start_cfs_bandwidth(cfs_b);
7756 } 7755 }
7757 raw_spin_unlock_irq(&cfs_b->lock); 7756 raw_spin_unlock_irq(&cfs_b->lock);
7758 7757