sched/irq: Remove CONFIG_SCHED_IRQMONITOR when define CALL_VECTOR

since up_perf_ API doesn't couple with CONFIG_SCHED_IRQMONITOR

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-04-05 14:50:23 +08:00 committed by Alan Carvalho de Assis
parent bf3da321c9
commit aed5dadc3d
1 changed files with 2 additions and 19 deletions

View File

@ -70,10 +70,7 @@
# define CONFIG_SCHED_CRITMONITOR_MAXTIME_IRQ 0 # define CONFIG_SCHED_CRITMONITOR_MAXTIME_IRQ 0
#endif #endif
#ifndef CONFIG_SCHED_IRQMONITOR #ifdef CONFIG_SCHED_IRQMONITOR
# define CALL_VECTOR(ndx, vector, irq, context, arg) \
vector(irq, context, arg)
#elif defined(CONFIG_SCHED_CRITMONITOR)
# define CALL_VECTOR(ndx, vector, irq, context, arg) \ # define CALL_VECTOR(ndx, vector, irq, context, arg) \
do \ do \
{ \ { \
@ -98,21 +95,7 @@
while (0) while (0)
#else #else
# define CALL_VECTOR(ndx, vector, irq, context, arg) \ # define CALL_VECTOR(ndx, vector, irq, context, arg) \
do \ vector(irq, context, arg)
{ \
struct timespec start; \
struct timespec end; \
struct timespec delta; \
clock_systime_timespec(&start); \
vector(irq, context, arg); \
clock_systime_timespec(&end); \
clock_timespec_subtract(&end, &start, &delta); \
if (delta.tv_nsec > g_irqvector[ndx].time) \
{ \
g_irqvector[ndx].time = delta.tv_nsec; \
} \
} \
while (0)
#endif /* CONFIG_SCHED_IRQMONITOR */ #endif /* CONFIG_SCHED_IRQMONITOR */
/**************************************************************************** /****************************************************************************