diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-04-18 10:03:25 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-04-18 10:03:25 +0000 |
commit | 2f02d622348ce11efd79100dd665764b5bffd480 (patch) | |
tree | 969b87538900a70cf86c1b9887985954afd64374 | |
parent | d6cd1bc58e61d755aefcc66bcde351d140f81e2e (diff) |
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
-rw-r--r-- | firmware/thread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index 1e20181c75..13d568eafb 100644 --- a/firmware/thread.c +++ b/firmware/thread.c @@ -2234,12 +2234,12 @@ unsigned int wakeup_thread(struct thread_entry **list) } if (current != NULL && - IF_COP( thread->core == current->core && ) - find_first_set_bit(cores[current->core].rtr.mask) < current->priority) + find_first_set_bit(cores[IF_COP_CORE(current->core)].rtr.mask) + < current->priority) { - /* Woken thread is higher priority and exists on the same CPU core; - * recommend a task switch. Knowing if this is an interrupt call - * would be helpful here. */ + /* There is a thread ready to run of higher or same priority on + * the same core as the current one; recommend a task switch. + * Knowing if this is an interrupt call would be helpful here. */ result |= THREAD_SWITCH; } #endif /* HAVE_PRIORITY_SCHEDULING */ |