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:
parent
c815996606
commit
76b848e38c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue