History log of /system/core/libcutils/sched_policy.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
86b121523d7d3634bf5ac07b6e238b36b3e75f0a 08-May-2010 Brad Fitzpatrick <bradfitz@android.com> fix windows SDK build

Change-Id: I2c563b20197803cafa91214aeff2c06fc0c75580
/system/core/libcutils/sched_policy.c
e43c248316d0faa7bdc23de823b068c2aa3520ab 07-May-2010 Brad Fitzpatrick <bradfitz@android.com> More fixes to Binder perf regression from Eclair

Re-use the file descriptor to change the cgroups. There's a fast path
in the kernel for the case where the value's already uncahnged. Also,
this is okay because the kernel ignores the write offset. This is
essentially a ioctl-ish/datagram interface, despite being a fd we're
writing to.

This reduces Dalvik->Dalvik void/void Binder calls on Sapphire from
~1.2 to ~0.8 ms. This is a bit slower than the ~0.7 ms we get
avoiding the write altogether.

strace confirms:

[pid 1557] ioctl(21, 0xc0186201 <unfinished ...>
[pid 1556] <... ioctl resumed> , 0x45399cd0) = 0
[pid 1556] write(22, "1556", 4) = 4
[pid 1556] ioctl(21, 0xc0186201 <unfinished ...>
[pid 1555] <... ioctl resumed> , 0x45299cd0) = 0
[pid 1555] write(22, "1555", 4) = 4
[pid 1555] ioctl(21, 0xc0186201 <unfinished ...>
[pid 1554] <... ioctl resumed> , 0x45199cd0) = 0
[pid 1554] write(22, "1554", 4) = 4

BUG=2660235

Change-Id: Ia9f9e1d5b792eaebc9560f89931faf6df0cf9c0d
/system/core/libcutils/sched_policy.c
253e27acb6c9e3e0b03c59f25cdf9ecbd64bcdad 06-May-2010 Brad Fitzpatrick <bradfitz@android.com> Optimize set_sched_policy(), which gets called in every binder call.

- use static /dev/cpuctl filenames, rather than sprintf() on the fly
- use a custom formatter instead of sprintf() for the tid number

This is a simplified version of Dan's original
Ifc9c81f74fe65f0695ead53b30194bc6adf00da0 to be less risky for Froyo.

Bug: 2660235
Change-Id: I744bbc2ec01fd2569612c814a497df40a933b622
/system/core/libcutils/sched_policy.c
7e8529a8b528fd30586aa037f15a31b29582c537 25-Mar-2010 San Mehat <san@google.com> system/core: Switch libsysutils & sched_policy LOG -> SLOG

Change-Id: Id74c6895a8012c5915f2e259339101844de7c085
Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
503df2075991cd03ddf43d14e05768a2138b9028 03-Mar-2010 San Mehat <san@google.com> cutils: sched_policy: Make getSchedulerGroup() play nicely with multiple control groups

Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
c1c38dd01c43079ed24b9030bc8a20c649bacc3f 03-Dec-2009 San Mehat <san@google.com> system: sched_policy: Don't return an error when the thread we're trying to move exits on us

Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
805d67ab11c1bb21d494459d6167f5f67f0002eb 29-Oct-2009 San Mehat <san@google.com> cutils: sched_policy: Fix bug where we were unable to move backgrounded threads into the foreground

Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
d2e4e46ce4bc29c3328fccfbbbe0590eaa8713f7 29-Oct-2009 San Mehat <san@google.com> cutils: schedpolicy: Add debug code to log sched policy transitions

Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
c0dfca7ae1f6016461235552091c2cacacca82a2 27-Oct-2009 San Mehat <san@google.com> cutils: Add support for reading a processes scheduler policy

Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
0384a98d6f61fa47ffde01c15e552f738e88fb94 16-Sep-2009 Raphael <raphael@google.com> Disable sched_policy under Windows.

This introduces a new HAVE_SCHED_H arch define, which is used
to prevent from building sched_policy.c during the Windows SDK.

Change-Id: I3667857a4ae7d6baaf1efd1cd187a5baf91419d8
/system/core/libcutils/sched_policy.c
3cd5b66ba05cffe38bfa4e2da9b93292ba0b073a 15-Sep-2009 San Mehat <san@google.com> libcutils: Dont include kernel header + add defines

Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
493dad966305a7fb555addd367532dd2af275a27 12-Sep-2009 San Mehat <san@google.com> libcutils: Add abstracted support for setting scheduler policies
Also changes the background policy to use SCHED_BATCH. IDLEPRIO
can cause 100% starvation.

Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c