From bf3da321c98ee87b502a1c6b8081b4d27006f435 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 5 Apr 2022 14:49:11 +0800 Subject: [PATCH] sched/wqueue: Simplify CALL_WORKER dispatch condition Signed-off-by: Xiang Xiao --- sched/wqueue/kwork_thread.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sched/wqueue/kwork_thread.c b/sched/wqueue/kwork_thread.c index 847d26283b..cb63a52747 100644 --- a/sched/wqueue/kwork_thread.c +++ b/sched/wqueue/kwork_thread.c @@ -46,7 +46,11 @@ * Pre-processor Definitions ****************************************************************************/ -#if defined(CONFIG_SCHED_CRITMONITOR_MAXTIME_WQUEUE) && CONFIG_SCHED_CRITMONITOR_MAXTIME_WQUEUE > 0 +#ifndef CONFIG_SCHED_CRITMONITOR_MAXTIME_WQUEUE +# define CONFIG_SCHED_CRITMONITOR_MAXTIME_WQUEUE 0 +#endif + +#if CONFIG_SCHED_CRITMONITOR_MAXTIME_WQUEUE > 0 # define CALL_WORKER(worker, arg) \ do \ { \