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
1d24751ba3
commit
aa109efed9
@ -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…
x
Reference in New Issue
Block a user