Cleanup: Use fpuRelease

Instead of doing exactly the same.

Signed-off-by: Indan Zupancic <indan@nul.nu>
This commit is contained in:
Indan Zupancic
2025-12-14 01:47:27 +00:00
parent c88c066a83
commit 33636e983d

View File

@@ -23,9 +23,7 @@ void migrateTCB(tcb_t *tcb, word_t new_core)
* is not necessarily the core, that we are now running on), then release
* that cores's FPU.
*/
if (nativeThreadUsingFPU(tcb)) {
switchFpuOwner(NULL, tcb->tcbAffinity);
}
fpuRelease(tcb);
#endif /* CONFIG_HAVE_FPU */
tcb->tcbAffinity = new_core;
#ifdef CONFIG_DEBUG_BUILD