1 #!/system/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 6 PID=`pgrep -x spi6` 7 echo -n $PID > /dev/cpuset/foreground/tasks 8 9 PID=`pgrep -x nanohub` 10 echo -n $PID > /dev/cpuset/foreground/tasks 11