1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 **************************************************************************** 11 ****************************************************************************/ 12 #ifndef __LINUX_PREEMPT_H 13 #define __LINUX_PREEMPT_H 14 15 #include <linux/thread_info.h> 16 #include <linux/linkage.h> 17 18 #define add_preempt_count(val) do { preempt_count() += (val); } while (0) 19 #define sub_preempt_count(val) do { preempt_count() -= (val); } while (0) 20 21 #define inc_preempt_count() add_preempt_count(1) 22 #define dec_preempt_count() sub_preempt_count(1) 23 24 #define preempt_count() (current_thread_info()->preempt_count) 25 26 #define preempt_disable() do { } while (0) 27 #define preempt_enable_no_resched() do { } while (0) 28 #define preempt_enable() do { } while (0) 29 #define preempt_check_resched() do { } while (0) 30 31 #endif 32