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
1 changed files with 5 additions and 0 deletions
|
@ -145,6 +145,11 @@ __sparc_trap_interrupt:
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_THREAD_USAGE
|
||||||
|
call z_sched_usage_stop
|
||||||
|
nop
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_TRACING_ISR
|
#ifdef CONFIG_TRACING_ISR
|
||||||
call sys_trace_isr_enter
|
call sys_trace_isr_enter
|
||||||
nop
|
nop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue