1#!/vendor/bin/sh
2
3# move spi6 thread and nanohub thread into foreground cpuset to prevent them
4# from stealing time from top app UIThread or RenderThread
5
6PID=`pgrep -x spi6`
7echo -n $PID > /dev/cpuset/foreground/tasks
8
9PID=`pgrep -x nanohub`
10echo -n $PID > /dev/cpuset/foreground/tasks
11