Changeset View
Changeset View
Standalone View
Standalone View
head/sys/compat/linuxkpi/common/include/linux/preempt.h
Show All 28 Lines | |||||
#ifndef _LINUX_PREEMPT_H_ | #ifndef _LINUX_PREEMPT_H_ | ||||
#define _LINUX_PREEMPT_H_ | #define _LINUX_PREEMPT_H_ | ||||
#include <linux/list.h> | #include <linux/list.h> | ||||
#define in_interrupt() \ | #define in_interrupt() \ | ||||
(curthread->td_intr_nesting_level || curthread->td_critnest) | (curthread->td_intr_nesting_level || curthread->td_critnest) | ||||
#define preempt_disable() critical_enter() | |||||
#define preempt_enable() critical_exit() | |||||
#endif /* _LINUX_PREEMPT_H_ */ | #endif /* _LINUX_PREEMPT_H_ */ |