/* * Copyright 2020, Data61, CSIRO (ABN 41 687 119 230) * * SPDX-License-Identifier: GPL-2.0-only */ #include #include #include #ifdef ENABLE_SMP_SUPPORT void migrateTCB(tcb_t *tcb, word_t new_core) { #ifdef CONFIG_DEBUG_BUILD tcbDebugRemove(tcb); #endif Arch_migrateTCB(tcb); tcb->tcbAffinity = new_core; #ifdef CONFIG_DEBUG_BUILD tcbDebugAppend(tcb); #endif } #endif /* ENABLE_SMP_SUPPORT */