1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Thomas Martitz 2011-02-19 00:09:08 +00:00
parent 8bc2801e7c
commit 70bb128ae9
3 changed files with 25 additions and 22 deletions

View file

@ -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;