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