preempt.h 311 B

12345678910111213141516
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LINUX_PREEMPT_H
  3. #define __LINUX_PREEMPT_H
  4. extern int preempt_count;
  5. #define preempt_disable() uatomic_inc(&preempt_count)
  6. #define preempt_enable() uatomic_dec(&preempt_count)
  7. static inline int in_interrupt(void)
  8. {
  9. return 0;
  10. }
  11. #endif /* __LINUX_PREEMPT_H */