diff --git a/[refs] b/[refs] index a27a224aacc5..7547aa319dd9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 020e773f6b2e797a13d23723773ed1b3ba2c35dc +refs/heads/master: 7fe19da4ca38fc20cdbc7020fcf2eca8fc756410 diff --git a/trunk/include/linux/hardirq.h b/trunk/include/linux/hardirq.h index 8a389b608ce3..41cb31f14ee3 100644 --- a/trunk/include/linux/hardirq.h +++ b/trunk/include/linux/hardirq.h @@ -96,11 +96,15 @@ */ #define in_nmi() (preempt_count() & NMI_MASK) -#if defined(CONFIG_PREEMPT) +#if defined(CONFIG_PREEMPT) && defined(CONFIG_BKL) # define PREEMPT_INATOMIC_BASE kernel_locked() -# define PREEMPT_CHECK_OFFSET 1 #else # define PREEMPT_INATOMIC_BASE 0 +#endif + +#if defined(CONFIG_PREEMPT) +# define PREEMPT_CHECK_OFFSET 1 +#else # define PREEMPT_CHECK_OFFSET 0 #endif