arch/sparc: Add hook for CONFIG_SCHED_THREAD_USAGE accounting in ISRs

Call into z_thread_usage_stop() before ISR entry to avoid including
interrupt handling totals in thread usage stats.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2021-10-28 12:58:02 -07:00 committed by Anas Nashif
parent c815996606
commit 76b848e38c
1 changed files with 5 additions and 0 deletions

View File

@ -145,6 +145,11 @@ __sparc_trap_interrupt:
nop
nop
#ifdef CONFIG_SCHED_THREAD_USAGE
call z_sched_usage_stop
nop
#endif
#ifdef CONFIG_TRACING_ISR
call sys_trace_isr_enter
nop