LinuxKPI: Add in_task macro.

This patch is part of D19565

Reviewed by:	hps, bwidawsk
Approved by:	imp (mentor), hps
Obtained from:	bwidawsk
MFC after:	1 week
This commit is contained in:
Johannes Lundberg 2019-05-16 21:07:37 +00:00
parent e86fa024ac
commit 6da2681fbc

View File

@ -34,6 +34,8 @@
#define in_interrupt() \
(curthread->td_intr_nesting_level || curthread->td_critnest)
#define in_task() (curthread->td_priority >= PI_SOFT)
#define preempt_disable() critical_enter()
#define preempt_enable() critical_exit()