preempt.h 272 B

1234567891011121314
  1. #ifndef __LINUX_PREEMPT_H
  2. #define __LINUX_PREEMPT_H
  3. extern int preempt_count;
  4. #define preempt_disable() uatomic_inc(&preempt_count)
  5. #define preempt_enable() uatomic_dec(&preempt_count)
  6. static inline int in_interrupt(void)
  7. {
  8. return 0;
  9. }
  10. #endif /* __LINUX_PREEMPT_H */