Commit d13cdf1a authored by Bernhard Thoben's avatar Bernhard Thoben
Browse files

kitakami-common: rootdir: Set up schedtune

To fix error messages like this: "Failed to open /dev/stune/top-app/tasks: No such file or directory"

Change-Id: I05e7f5718bb1cfa1049a2a20f8e3f485211f77fa
parent 79a9f377
......@@ -110,6 +110,32 @@ on init
write /sys/block/zram0/comp_algorithm lz4
write /proc/sys/vm/page-cluster 0
# Create energy-aware scheduler tuning nodes
mkdir /dev/stune/foreground
mkdir /dev/stune/background
mkdir /dev/stune/top-app
mkdir /dev/stune/rt
chown system system /dev/stune
chown system system /dev/stune/foreground
chown system system /dev/stune/background
chown system system /dev/stune/top-app
chown system system /dev/stune/rt
chown system system /dev/stune/tasks
chown system system /dev/stune/foreground/tasks
chown system system /dev/stune/background/tasks
chown system system /dev/stune/top-app/tasks
chown system system /dev/stune/rt/tasks
write /dev/stune/tasks 0
write /dev/stune/foreground/tasks 0
write /dev/stune/background/tasks 0
write /dev/stune/top-app/tasks 0
write /dev/stune/rt/tasks 0
chmod 0664 /dev/stune/tasks
chmod 0664 /dev/stune/foreground/tasks
chmod 0664 /dev/stune/background/tasks
chmod 0664 /dev/stune/top-app/tasks
chmod 0664 /dev/stune/rt/tasks
on early-boot
# set RLIMIT_MEMLOCK to 64MB
setrlimit 8 67108864 67108864
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment