Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __LINUX_PREEMPT_H
0003 #define __LINUX_PREEMPT_H
0004 
0005 extern int preempt_count;
0006 
0007 #define preempt_disable()   uatomic_inc(&preempt_count)
0008 #define preempt_enable()    uatomic_dec(&preempt_count)
0009 
0010 static inline int in_interrupt(void)
0011 {
0012     return 0;
0013 }
0014 
0015 #endif /* __LINUX_PREEMPT_H */