2016-12-16 15:11:05 -05:00
|
|
|
#ifndef __LINUX_PREEMPT_H
|
|
|
|
|
#define __LINUX_PREEMPT_H
|
|
|
|
|
|
2016-12-14 15:08:02 -08:00
|
|
|
extern int preempt_count;
|
2016-03-17 14:21:45 -07:00
|
|
|
|
2016-12-14 15:08:02 -08:00
|
|
|
#define preempt_disable() uatomic_inc(&preempt_count)
|
|
|
|
|
#define preempt_enable() uatomic_dec(&preempt_count)
|
2016-12-16 15:11:05 -05:00
|
|
|
|
|
|
|
|
static inline int in_interrupt(void)
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif /* __LINUX_PREEMPT_H */
|