void set_cpu_saver_after (const void *stuff) { int value = *(const int *)stuff; if (value == 0) { /* Remove the watchdog timer only if it is running. */ if (timer_exists(cpu_saver_timeref)) remove_timer(cpu_saver_timeref); } else cpu_saver_timer(NULL); }
void set_cpu_saver_after (void *stuff) { VARIABLE *v; int value; v = (VARIABLE *)stuff; value = v->integer; if (value == 0) { /* Remove the watchdog timer only if it is running. */ if (timer_exists(cpu_saver_timeref)) remove_timer(cpu_saver_timeref); } else cpu_saver_timer(NULL); }
/* * When cpu saver mode is turned off (by the user pressing a key), then * we immediately do all of the system timers and then they will reset * themselves to go off as regular. */ void reset_system_timers (void) { cpu_saver = 0; update_system_timer(NULL); cpu_saver_timer(NULL); }