linux/tools/thermal/lib/mainloop.c