diff options
Diffstat (limited to 'include/linux/preempt.h')
| -rw-r--r-- | include/linux/preempt.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/preempt.h b/include/linux/preempt.h index f5d4723cdb3..116bba0d8e2 100644 --- a/include/linux/preempt.h +++ b/include/linux/preempt.h @@ -6,10 +6,17 @@ * preempt_count (used for kernel preemption, interrupt count, etc.) */ -#include <linux/thread_info.h> #include <linux/linkage.h> #include <linux/list.h> +/* + * We use the MSB mostly because its available; see <linux/preempt_mask.h> for + * the other bits -- can't include that header due to inclusion hell. + */ +#define PREEMPT_NEED_RESCHED 0x80000000 + +#include <asm/preempt.h> + #if defined(CONFIG_DEBUG_PREEMPT) || defined(CONFIG_PREEMPT_TRACER) extern void add_preempt_count(int val); extern void sub_preempt_count(int val); |
