kernel: Cleanup. Remove redundant test when calling _Swap()
_Swap() must already handle the case where _get_next_ready_thread() is the same as _current. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
552a03b48f
commit
dc0713a706
1 changed files with 0 additions and 7 deletions
|
@ -498,15 +498,8 @@ void _reschedule(u32_t key)
|
|||
goto noswap;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
(void)_Swap(key);
|
||||
return;
|
||||
#else
|
||||
if (_get_next_ready_thread() != _current) {
|
||||
(void)_Swap(key);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
noswap:
|
||||
irq_unlock(key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue