diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2018-02-07 13:00:44 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2018-02-07 13:00:44 +0530 |
commit | 3f17b82e153c01b6891021613d2cece54ef5831b (patch) | |
tree | df034f65b8e802555025258bf257c090ab455dbf | |
parent | 9211d28e63cae8f9b282c1e00dc6ff88935d94ca (diff) |
updates
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
-rwxr-xr-x | misc/offline.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/misc/offline.sh b/misc/offline.sh new file mode 100755 index 0000000..4b5bbcf --- /dev/null +++ b/misc/offline.sh @@ -0,0 +1,13 @@ +#!/system/bin/sh + +if [ $1 -a $1 -eq 4 ]; then + for i in `seq 4 7`; + do + echo 0 > /sys/devices/system/cpu/cpu$i/online + done +else + for i in `seq 0 3`; + do + echo 0 > /sys/devices/system/cpu/cpu$i/online + done +fi |