From: Linus Torvalds Date: Thu, 18 Nov 2010 18:56:29 +0000 (-0800) Subject: hardirq.h: needs sched.h if using BKL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ed1d77b18c9f4ff06d5b42c65041aa55a1447053;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git hardirq.h: needs sched.h if using BKL This really isn't the right thing to do, and strictly speaking we should have the BKL depth count in the thread info right next to the preempt count. The two really do go together. However, since that would involve a patch to all architectures, and the BKL is finally going away, it's simply not worth the effort to do the RightThing(tm). Just re-instate the include that we used to get accidentally from the smp_lock.h one. This is all fallout from the same old "BKL: remove extraneous #include " commit. Reported-by: Ingo Molnar Tested-by: Randy Dunlap Cc: Arnd Bergmann Signed-off-by: Linus Torvalds --- diff --git a/include/linux/hardirq.h b/include/linux/hardirq.h index 714da7e5d10..32f9fd6619b 100644 --- a/include/linux/hardirq.h +++ b/include/linux/hardirq.h @@ -94,6 +94,7 @@ #define in_nmi() (preempt_count() & NMI_MASK) #if defined(CONFIG_PREEMPT) && defined(CONFIG_BKL) +# include # define PREEMPT_INATOMIC_BASE (current->lock_depth >= 0) #else # define PREEMPT_INATOMIC_BASE 0