1
0
Fork 0
forked from len0rd/rockbox

Fix red from r25666 (forgot to use macro to not use core variable on single core), update a comment and remove core check for setting THREAD_SWITCH upon wakeup which is irrelevant to the idea behind the change.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25667 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2010-04-18 10:03:25 +00:00
parent d6cd1bc58e
commit 2f02d62234

View file

@ -2234,12 +2234,12 @@ unsigned int wakeup_thread(struct thread_entry **list)
} }
if (current != NULL && if (current != NULL &&
IF_COP( thread->core == current->core && ) find_first_set_bit(cores[IF_COP_CORE(current->core)].rtr.mask)
find_first_set_bit(cores[current->core].rtr.mask) < current->priority) < current->priority)
{ {
/* Woken thread is higher priority and exists on the same CPU core; /* There is a thread ready to run of higher or same priority on
* recommend a task switch. Knowing if this is an interrupt call * the same core as the current one; recommend a task switch.
* would be helpful here. */ * Knowing if this is an interrupt call would be helpful here. */
result |= THREAD_SWITCH; result |= THREAD_SWITCH;
} }
#endif /* HAVE_PRIORITY_SCHEDULING */ #endif /* HAVE_PRIORITY_SCHEDULING */