summaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2015-12-17 13:11:50 -0800
committerTim Murray <timmurray@google.com>2015-12-17 13:11:50 -0800
commitd31cb63db4dc6826fdcc9b4927ab7fbb678ca724 (patch)
tree8c47eb627530864fc2fc5376da6a66df000cb389 /libcutils
parenta53ec324bd2bc9c4507cd85fb756f9904a828b57 (diff)
downloadsystem_core-d31cb63db4dc6826fdcc9b4927ab7fbb678ca724.zip
system_core-d31cb63db4dc6826fdcc9b4927ab7fbb678ca724.tar.gz
system_core-d31cb63db4dc6826fdcc9b4927ab7fbb678ca724.tar.bz2
Fix logspam from system-background cpuset.
system-background can't be opened by most processes, since system-bg is a privileged cpuset. Remove the log message when it can't be opened. We'll still log a failure to use the fd if we try to use it after it can't be opened, which is fine. bug 26249842 Change-Id: I99f185c51645bc81b6a41732848227c27675cdf7
Diffstat (limited to 'libcutils')
-rw-r--r--libcutils/sched_policy.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c
index 8c26cdd..70dc8c4 100644
--- a/libcutils/sched_policy.c
+++ b/libcutils/sched_policy.c
@@ -129,9 +129,6 @@ static void __initialize(void) {
bg_cpuset_fd = open(filename, O_WRONLY | O_CLOEXEC);
filename = "/dev/cpuset/system-background/tasks";
system_bg_cpuset_fd = open(filename, O_WRONLY | O_CLOEXEC);
- if (system_bg_cpuset_fd < 0) {
- SLOGE("initialize of system-bg failed: %s\n", strerror(errno));
- }
}
#endif