void switchToThread(tcb_t *thread) { Arch_switchToThread(thread); tcbSchedDequeue(thread); ksCurThread = thread; }
void switchToThread(tcb_t *thread) { #ifdef CONFIG_BENCHMARK_TRACK_UTILISATION benchmark_utilisation_switch(ksCurThread, thread); #endif Arch_switchToThread(thread); tcbSchedDequeue(thread); ksCurThread = thread; }