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:
parent
e86fa024ac
commit
6da2681fbc
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user