1
0
Fork 0
forked from len0rd/rockbox

Removed CPU Sleep setting. It's now permanently enabled.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3434 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2003-03-12 15:30:59 +00:00
parent 3ca8d3589e
commit 72f75f36a5
6 changed files with 5 additions and 26 deletions

View file

@ -33,7 +33,6 @@ struct regs
};
int num_threads;
bool cpu_sleep_enabled;
static volatile int num_sleepers;
static int current_thread;
static struct regs thread_contexts[MAXTHREADS] __attribute__ ((section(".idata")));
@ -104,7 +103,7 @@ void switch_thread(void)
/* Do nothing */
#else
while (cpu_sleep_enabled && num_sleepers == num_threads)
while (num_sleepers == num_threads)
{
/* Enter sleep mode, woken up on interrupt */
SBYCR &= 0x7F;
@ -125,11 +124,6 @@ void switch_thread(void)
panicf("Stkov %s", thread_name[next]);
}
void cpu_sleep(bool enabled)
{
cpu_sleep_enabled = enabled;
}
void sleep_thread(void)
{
++num_sleepers;