mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 11:11:26 +02:00
Revert "ANDROID: sched: Make uclamp changes depend on CAP_SYS_NICE"
This reverts commit 0bb784e623. It causes
merge conflicts in 6.0-rc1 and so needs to be reverted. If it is still
needed, it can come back after 6.0-rc1.
Bug: 187186685
Cc: Quentin Perret <qperret@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I02bba37a97e0d5f8f4e38c4b880d620ef788f334
This commit is contained in:
parent
29d09c895a
commit
ca59313305
|
|
@ -7457,10 +7457,6 @@ static int __sched_setscheduler(struct task_struct *p,
|
|||
/* Normal users shall not reset the sched_reset_on_fork flag: */
|
||||
if (p->sched_reset_on_fork && !reset_on_fork)
|
||||
return -EPERM;
|
||||
|
||||
/* Can't change util-clamps */
|
||||
if (attr->sched_flags & SCHED_FLAG_UTIL_CLAMP)
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
if (user) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user