SMP: Fixup compilation error
#1065 introduces a compilation error from refactoring. Also apply some missed feedback from #1065 Signed-off-by: Kent McLeod <kent-mcleod@users.noreply.github.com>
This commit is contained in:
parent
3c180701ee
commit
49f4ddfc8c
1 changed files with 3 additions and 3 deletions
|
|
@ -18,10 +18,10 @@ void migrateTCB(tcb_t *tcb, word_t new_core)
|
|||
#ifdef CONFIG_HAVE_FPU
|
||||
/* If the thread owns the FPU of the core it is currently running on (which
|
||||
* is not necessarily the core, that we are now running on), then release
|
||||
* this cores's FPU.
|
||||
* that cores's FPU.
|
||||
*/
|
||||
if (nativeThreadUsingFPU(thread)) {
|
||||
switchFpuOwner(NULL, thread->tcbAffinity);
|
||||
if (nativeThreadUsingFPU(tcb)) {
|
||||
switchFpuOwner(NULL, tcb->tcbAffinity);
|
||||
}
|
||||
#endif /* CONFIG_HAVE_FPU */
|
||||
tcb->tcbAffinity = new_core;
|
||||
|
|
|
|||
Loading…
Reference in a new issue