From 23ad7517d21c9751f571232c91f9e74822a5f60e Mon Sep 17 00:00:00 2001 From: Irina Patru Date: Thu, 12 May 2016 14:41:57 +0300 Subject: [PATCH] init.rc: Remove cpu weight set on the root cgroup It isn't allowed to change the cpu.share value for the root cgroup. See kernel commit: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ec7dc8ac73e4a56ed03b673f026f08c0d547f597 This fixes the following error seen in dmesg: init: write_file: Unable to write to '/dev/cpuctl/cpu.shares': Invalid argument BUG: 28735908 Change-Id: I5ef359fb275792f99d13d35c62499026d354f6af Signed-off-by: Irina Patru (cherry picked from commit c560c6310fdb6f8d4a44b05c0d15cad7ac6f4bb1) --- rootdir/init.rc | 1 - 1 file changed, 1 deletion(-) diff --git a/rootdir/init.rc b/rootdir/init.rc index da3b98b87..0e81bb260 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -135,7 +135,6 @@ on init chown system system /dev/cpuctl chown system system /dev/cpuctl/tasks chmod 0666 /dev/cpuctl/tasks - write /dev/cpuctl/cpu.shares 1024 write /dev/cpuctl/cpu.rt_period_us 1000000 write /dev/cpuctl/cpu.rt_runtime_us 950000