blob: d38ba948383e2fcdfb99c37dcfec0bd88df9a530 [file] [log] [blame]
#!/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