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:
parent
d6cd1bc58e
commit
2f02d62234
1 changed files with 5 additions and 5 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue