No description
Find a file
John Stultz 2f13f0a48a sched_policy: Add support for /proc/<tid>/timerslack_ns over PR_SET_TIMERSLACK_PID
The PR_SET_TIMERSLACK_PID number has collided with upstream
changes a number of times, and thus the number is not consistent
between AOSP common kernel versions.

In 4.6+, the upstream kernel added equivalent functionaity via
the /proc/<tid>/timerslack_ns entry.

This patch changes the sched_policy logic to support
/proc/<tid>/timerslack_ns if its available, falling back to the
older PR_SET_TIMERSLACK_PID method if not.

NOTE: Eventually PR_SET_TIMERSLACK_PID usage will need to be
removed as it is likely to conflict with valid future upstream
PR_* entries.

Also add missing O_CLOEXEC to other open calls in this file.

Change-Id: Iec0b8a62de0dc8bdd57b60df82bd4d31c5d64709
Signed-off-by: John Stultz <john.stultz@linaro.org>
2016-07-29 14:30:20 -07:00
adb Use arraysize() for supplementary groups. 2016-07-18 13:46:42 -04:00
adf Convert more Android.mk files to Android.bp 2016-07-13 17:41:45 -07:00
base Convert libbase Android.mk to Android.bp 2016-07-11 14:23:32 -07:00
bootstat bootstat: Fix a potential unhandled exception for malformed input. 2016-07-28 11:59:22 -07:00
cpio fs_config: replace getenv('OUT') by new fs_config parameter 2015-07-09 21:47:07 -07:00
crash_reporter Fix clang-tidy performance warnings in crash_reporter. 2016-07-27 16:18:05 -07:00
debuggerd Disable warnings triggered in Clang r271374 2016-07-19 20:29:05 +00:00
fastboot Remove unnecessary ARRAY_SIZE macros. 2016-06-28 14:48:45 -07:00
fingerprintd Fix google-explicit-constructor warnings. 2016-04-29 15:44:04 -07:00
fs_mgr Fix clang-tidy performance warnings in fs_mgr. 2016-07-27 16:12:54 -07:00
gatekeeperd Fix google-explicit-constructor warnings. 2016-04-29 15:44:04 -07:00
healthd Fix clang-tidy performance warnings in healthd. 2016-07-27 16:05:50 -07:00
include Merge "LruCache: avoid copying keys in lookup" 2016-07-20 19:38:47 +00:00
init ueventd: Remove verbose restorecon_recursive: message 2016-07-28 13:55:39 -07:00
libbacktrace Convert libbacktrace, libutils to Soong 2016-07-12 17:20:18 -07:00
libbinderwrapper core: Update libchrome APIs to r395517 2016-05-26 11:29:53 -07:00
libcrypto_utils Rename lib{crypto,ssl}-host to lib{crypto,ssl} 2016-07-21 14:15:31 -07:00
libcutils sched_policy: Add support for /proc/<tid>/timerslack_ns over PR_SET_TIMERSLACK_PID 2016-07-29 14:30:20 -07:00
libdiskconfig Convert more Android.mk files to Android.bp 2016-07-13 17:41:45 -07:00
libion Convert more Android.mk files to Android.bp 2016-07-13 17:41:45 -07:00
liblog liblog: pmsg_read add validity checking for prio 2016-07-14 07:34:53 -07:00
libmemtrack Convert more Android.mk files to Android.bp 2016-07-13 17:41:45 -07:00
libmemunreachable Suppress clang-tidy performance warnings in libmemunreachable. 2016-07-27 16:01:41 -07:00
libnativebridge Convert more Android.mk files to Android.bp 2016-07-13 17:41:45 -07:00
libnativeloader libnativeloader: convert Android.mk to Android.bp 2016-07-27 10:36:36 -07:00
libnetutils libnetutils: Add synchronization per socket full operation 2016-06-07 10:11:59 -07:00
libpackagelistparser Convert libpackagelistparser to Android.bp 2016-07-19 22:19:37 -07:00
libpixelflinger Remove dead rotate90CW_4x4_16v6.S. 2016-07-13 17:58:34 -07:00
libprocessgroup use process groups for processes started by init 2016-06-06 16:31:01 -07:00
libsparse Convert more Android.mk files to Android.bp 2016-07-13 17:41:45 -07:00
libsuspend Convert more Android.mk files to Android.bp 2016-07-13 17:41:45 -07:00
libsync Cleanup uses of sprintf so we can deprecate it. 2016-03-07 18:40:40 -08:00
libsysutils Clean up CLOEXEC in SocketListener. 2016-02-19 18:14:22 -08:00
libusbhost libusbhost: Fix problem reading USB string descriptors on some quirky devices 2015-06-18 13:38:31 -07:00
libutils LruCache: avoid copying keys in lookup 2016-07-20 18:38:44 +00:00
libziparchive Convert libziparchive from Android.mk to Android.bp 2016-07-12 21:01:08 -07:00
lmkd Fix misc-macro-parentheses warnings in lmkd. 2016-05-18 15:37:20 -07:00
logcat logcatd: logpersist.start to enable logd service if disabled 2016-07-21 14:19:39 -07:00
logd Merge "logd: auditd: suppress multiple identical avc: messages to kmsg" 2016-07-20 20:30:52 +00:00
logwrapper Convert more Android.mk files to Android.bp 2016-07-13 17:41:45 -07:00
metricsd Fix clang-tidy performance warnings in metricsd/uploader. 2016-07-27 15:57:24 -07:00
mkbootimg mkbootimg: use int for os_version and os_patch_level 2016-03-29 16:06:37 -07:00
reboot Convert more Android.mk files to Android.bp 2016-07-13 17:41:45 -07:00
rootdir Remove attempt to write sched_compat_yield 2016-07-11 11:41:56 -07:00
run-as run-as: Use Minijail for privilege dropping. 2016-07-19 11:03:52 -04:00
sdcard Fix sdcard logging. 2016-07-26 16:52:48 -04:00
toolbox Lose sendevent to toybox. 2016-07-15 14:17:28 -07:00
trusty Fix misc-macro-parentheses warnings in system/core. 2016-06-22 14:33:13 -07:00
tzdatacheck Convert more Android.mk files to Android.bp 2016-07-13 17:41:45 -07:00
.gitignore Ignore adb/*.pyc files 2015-08-11 12:59:58 -07:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk Use BOARD_USES_VENDORIMAGE to detect vendor image presence 2016-07-08 18:17:48 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00