an extra tick
@ -58,13 +58,13 @@ int PowerManagement(int pid, unsigned int signal)
switch (power_state)
{
case POWER_STATE_WAKE:
if (accumulator > IDLE_TIMEOUT)
if (accumulator >= IDLE_TIMEOUT)
idle();
}
break;
case POWER_STATE_IDLE:
if (accumulator > SLEEP_TIMEOUT)
if (accumulator >= SLEEP_TIMEOUT)
if (Kernel_count_running_tasks() == 1)