summaryrefslogtreecommitdiff
path: root/init.foreground.sh
blob: d38ba948383e2fcdfb99c37dcfec0bd88df9a530 (plain)
1
2
3
4
5
6
7
8
9
10
#!/vendor/bin/sh

# move spi6 thread and nanohub thread into foreground cpuset to prevent them
# from stealing time from top app UIThread or RenderThread

PID=`pgrep -x spi6`
echo -n $PID > /dev/cpuset/foreground/tasks

PID=`pgrep -x nanohub`
echo -n $PID > /dev/cpuset/foreground/tasks