History log of /system/core/libcutils/sched_policy.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
29319a6753569fb3ef160c2de2f1c4d9d1398178 04-Jun-2012 Dima Zavin <dima@android.com> cutils: sched_policy: remove audio app/sys groups, merge into fg

Bug: 6528015
Change-Id: I6c2658b62442d811b53c6d18476fbd6cd45f9e3f
Signed-off-by: Dima Zavin <dima@android.com>
/system/core/libcutils/sched_policy.c
13ed76bfbce8e96604e781f88808b4d883891dde 04-Jun-2012 Dima Zavin <dima@android.com> cutils: sched_policy: make bg group be nested under fg

Adds an apps cgroup which will contain fg tasks. Move the bg group
nested underneath it.

Bug: 6538553
Change-Id: I55279415da625e15a5bb061c2b45fbe7f7a4c047
Signed-off-by: Dima Zavin <dima@android.com>
/system/core/libcutils/sched_policy.c
5b878d24c1f01a5f131d470280b51bcfb5638600 09-May-2012 Jeff Brown <jeffbrown@google.com> Revert "Revert "Use O_CLOEXEC when opening cgroup fds.""

This reverts commit 4df54bc4a85eacfff9c81dc0a7ebf3fd88a99982.
/system/core/libcutils/sched_policy.c
bff8f3fa9848e52e3f3fe773796a03a80133992a 09-May-2012 Jeff Brown <jeffbrown@google.com> Add stubs for host builds.

Bug: 4466013
Change-Id: I5633c841e71a48357bb04cd7ccc02550c17bde22
/system/core/libcutils/sched_policy.c
4df54bc4a85eacfff9c81dc0a7ebf3fd88a99982 08-May-2012 Jeff Brown <jeffbrown@google.com> Revert "Use O_CLOEXEC when opening cgroup fds."

This reverts commit e1440d81aef58e8b9983ab1f4540dc1fe5e63ab7
/system/core/libcutils/sched_policy.c
e1440d81aef58e8b9983ab1f4540dc1fe5e63ab7 08-May-2012 Jeff Brown <jeffbrown@google.com> Use O_CLOEXEC when opening cgroup fds.

Bug: 4466013
Change-Id: I0d2e915fc550a0ecaccad5e452dd4c87fc878b8b
/system/core/libcutils/sched_policy.c
10ec3c7645bfdb70518dc1b21df40ad5478589e3 20-Apr-2012 Glenn Kasten <gkasten@google.com> Add more SP_ constants

Change-Id: I52c8ea33b9b915fc08546f2ca0b191391f58506b
/system/core/libcutils/sched_policy.c
69bfb1f099164ae7ba44b5d0f7ba7c47cbbafd4d 16-Mar-2012 Glenn Kasten <gkasten@google.com> Scheduling group cleanup - add comment, SP_DEFAULT

Also tid == 0 maps to gettid() on platforms that support it.
This is needed by mediaserver code that was formerly using
the old C++ API.

Change-Id: I8baaa3e42315c9b924cec26b6da01e7cb69e0078
/system/core/libcutils/sched_policy.c
86c7cc81891a69ace7044de667b0624c284ee82b 06-Mar-2012 Glenn Kasten <gkasten@google.com> Add get_sched_policy_name() and use in ps and top

This will make it easier to add additional policies (cgroups) if needed.
Also added comments to the sched_policy APIs.

Change-Id: I33ce1cc4deae10983241f7391294b7a512d2c47c
/system/core/libcutils/sched_policy.c
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