at v4.11-rc2 14 lines 272 B view raw
1#ifndef __LINUX_PREEMPT_H 2#define __LINUX_PREEMPT_H 3 4extern int preempt_count; 5 6#define preempt_disable() uatomic_inc(&preempt_count) 7#define preempt_enable() uatomic_dec(&preempt_count) 8 9static inline int in_interrupt(void) 10{ 11 return 0; 12} 13 14#endif /* __LINUX_PREEMPT_H */