summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-03-12 15:30:59 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-03-12 15:30:59 +0000
commit72f75f36a5a52c7bee8773feefc2cad7213cc442 (patch)
tree5767e83cfa0353acf12a54a4bb7675cb37c5c5e0 /firmware
parent3ca8d3589e9bdb260984f90d7e2109a27ca8449c (diff)
downloadrockbox-72f75f36a5a52c7bee8773feefc2cad7213cc442.tar.gz
rockbox-72f75f36a5a52c7bee8773feefc2cad7213cc442.zip
Removed CPU Sleep setting. It's now permanently enabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3434 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/thread.h1
-rw-r--r--firmware/thread.c8
2 files changed, 1 insertions, 8 deletions
diff --git a/firmware/export/thread.h b/firmware/export/thread.h
index f5a4b50ddd..c6b3c8e4e3 100644
--- a/firmware/export/thread.h
+++ b/firmware/export/thread.h
@@ -30,6 +30,5 @@ void sleep_thread(void);
void wake_up_thread(void);
void init_threads(void);
int thread_stack_usage(int threadnum);
-void cpu_sleep(bool enabled);
#endif
diff --git a/firmware/thread.c b/firmware/thread.c
index ea518ca4ee..aedd665d2e 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -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;