mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
sched/wqueue: Simplify CALL_WORKER dispatch condition
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
074beff551
commit
bf3da321c9
@@ -46,7 +46,11 @@
|
|||||||
* Pre-processor Definitions
|
* 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) \
|
# define CALL_WORKER(worker, arg) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
|
|||||||
Reference in New Issue
Block a user