OSDN Git Service

qos: Don't allow userspace to impose restrictions on CPU idle levels
authorSultan Alsawaf <sultan@kerneltoast.com>
Fri, 3 May 2019 07:34:19 +0000 (00:34 -0700)
committer0ranko0P <ranko0p@outlook.com>
Sat, 7 Dec 2019 10:01:14 +0000 (18:01 +0800)
commitce3d1de60ea69b3930a373a04962b2e5d2e6b767
tree923db39fd223d517a40bdff42b304d9279038fb0
parentbf8252d8c3b3e496cc67b5e3929e56e597c99bb1
qos: Don't allow userspace to impose restrictions on CPU idle levels

Giving userspace intimate control over CPU latency requirements is
nonsense. Userspace can't even stop itself from being preempted, so
there's no reason for it to have access to a mechanism primarily used to
eliminate CPU delays on the order of microseconds.

Remove userspace's ability to send pm_qos requests so that it can't hurt
power consumption.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
kernel/power/qos.c