timer: mchp_xec_rtos: enable benchmarking during ISR
This adds the calls to read_timer_{start,end}_of_tick_handler() to mark the start and end of ISR which will be used to display the time spent in ISR with benchmarking tests. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
e39bf29321
commit
381271fd0d
1 changed files with 10 additions and 0 deletions
|
@ -217,6 +217,11 @@ static void xec_rtos_timer_isr(void *arg)
|
|||
{
|
||||
ARG_UNUSED(arg);
|
||||
|
||||
#ifdef CONFIG_EXECUTION_BENCHMARKING
|
||||
extern void read_timer_start_of_tick_handler(void);
|
||||
read_timer_start_of_tick_handler();
|
||||
#endif
|
||||
|
||||
u32_t cycles;
|
||||
s32_t ticks;
|
||||
|
||||
|
@ -243,6 +248,11 @@ static void xec_rtos_timer_isr(void *arg)
|
|||
|
||||
k_spin_unlock(&lock, key);
|
||||
z_clock_announce(ticks);
|
||||
|
||||
#ifdef CONFIG_EXECUTION_BENCHMARKING
|
||||
extern void read_timer_end_of_tick_handler(void);
|
||||
read_timer_end_of_tick_handler();
|
||||
#endif
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue