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

View File

@ -70,10 +70,7 @@
# define CONFIG_SCHED_CRITMONITOR_MAXTIME_IRQ 0
#endif
#ifndef CONFIG_SCHED_IRQMONITOR
# define CALL_VECTOR(ndx, vector, irq, context, arg) \
vector(irq, context, arg)
#elif defined(CONFIG_SCHED_CRITMONITOR)
#ifdef CONFIG_SCHED_IRQMONITOR
# define CALL_VECTOR(ndx, vector, irq, context, arg) \
do \
{ \
@ -98,21 +95,7 @@
while (0)
#else
# define CALL_VECTOR(ndx, vector, irq, context, arg) \
do \
{ \
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)
vector(irq, context, arg)
#endif /* CONFIG_SCHED_IRQMONITOR */
/****************************************************************************