benchmark: fix thread utils on riscv's fastpath
Signed-off-by: Rihui Wu <rihui.wu@unsw.edu.au>
This commit is contained in:
parent
4f7d7b7376
commit
b0567c4d1c
1 changed files with 4 additions and 0 deletions
|
|
@ -42,6 +42,10 @@ static inline void FORCE_INLINE switchToThread_fp(tcb_t *thread, pte_t *vroot, p
|
|||
|
||||
setVSpaceRoot(addrFromPPtr(vroot), asid);
|
||||
|
||||
#ifdef CONFIG_BENCHMARK_TRACK_UTILISATION
|
||||
benchmark_utilisation_switch(NODE_STATE(ksCurThread), thread);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HAVE_FPU
|
||||
lazyFPURestore(thread);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue