diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-02-19 00:09:08 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-02-19 00:09:08 +0000 |
| commit | 70bb128ae9b92c23480cd40fa90805eedd0db4bc (patch) | |
| tree | 411f39311c375fb5c071cafee3db783dca32c42c /firmware/thread.c | |
| parent | 8bc2801e7cb78be60967fefa96a71d4e91761630 (diff) | |
| download | rockbox-70bb128ae9b92c23480cd40fa90805eedd0db4bc.zip rockbox-70bb128ae9b92c23480cd40fa90805eedd0db4bc.tar.gz rockbox-70bb128ae9b92c23480cd40fa90805eedd0db4bc.tar.bz2 rockbox-70bb128ae9b92c23480cd40fa90805eedd0db4bc.tar.xz | |
Cleanup preprocessor around corelock usage and move its definition outside #ifdef ASSEMBLER_THREADS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29330 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/thread.c')
| -rw-r--r-- | firmware/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index bfbaf46..ea73150 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -967,7 +967,7 @@ void check_tmo_threads(void) * life again. */ if (state == STATE_BLOCKED_W_TMO) { -#if NUM_CORES > 1 +#ifdef HAVE_CORELOCK_OBJECT /* Lock the waiting thread's kernel object */ struct corelock *ocl = curr->obj_cl; @@ -1782,7 +1782,7 @@ void thread_exit(void) */ void remove_thread(unsigned int thread_id) { -#if NUM_CORES > 1 +#ifdef HAVE_CORELOCK_OBJECT /* core is not constant here because of core switching */ unsigned int core = CURRENT_CORE; unsigned int old_core = NUM_CORES; |