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