prctl: adds PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.
authorRuchi Kandoi <kandoiruchi@google.com>
Fri, 18 Apr 2014 21:07:28 +0000 (14:07 -0700)
committerRuchi Kandoi <kandoiruchi@google.com>
Wed, 23 Apr 2014 00:31:53 +0000 (17:31 -0700)
commit37a591d407084b967bb49acc3fe21c446b075d55
tree89182255cb108293cec840edee6cc55048a51aa7
parenta2acc58bc7460a03627f20842a7169d7a1328299
prctl: adds PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

Second argument is similar to PR_SET_TIMERSLACK, if non-zero then the
slack is set to that value otherwise sets it to the default for the thread.

Takes PID of the thread as the third argument.

This allows power/performance management software to set timer slack for
other threads according to its policy for the thread (such as when the
thread is designated foreground vs. background activity)

Change-Id: I744d451ff4e60dae69f38f53948ff36c51c14a3f
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
include/uapi/linux/prctl.h
kernel/sys.c