1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __LINUX_PREEMPT_H 2 #ifndef __LINUX_PREEMPT_H 3 #define __LINUX_PREEMPT_H 3 #define __LINUX_PREEMPT_H 4 4 5 extern int preempt_count; 5 extern int preempt_count; 6 6 7 #define preempt_disable() uatomic_inc(&p 7 #define preempt_disable() uatomic_inc(&preempt_count) 8 #define preempt_enable() uatomic_dec(&p 8 #define preempt_enable() uatomic_dec(&preempt_count) 9 9 10 static inline int in_interrupt(void) 10 static inline int in_interrupt(void) 11 { 11 { 12 return 0; 12 return 0; 13 } 13 } 14 14 15 #endif /* __LINUX_PREEMPT_H */ 15 #endif /* __LINUX_PREEMPT_H */ 16 16
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.