On Sun, Oct 18, 2015 at 06:44:19AM +0200, Mike Galbraith wrote: > Depends on 90b62b5129d5cb50f62f40e684de7a1961e57197. Rather than munge > the patch, take the dependency. >
Thanks Mike, I'll queue these for this for the 3.16 kernel as well. Cheers, -- Luís > From 90b62b5129d5cb50f62f40e684de7a1961e57197 Mon Sep 17 00:00:00 2001 > From: Frederic Weisbecker <[email protected]> > Date: Tue, 12 May 2015 16:41:48 +0200 > Subject: sched/preempt: Rename PREEMPT_CHECK_OFFSET to PREEMPT_DISABLE_OFFSET > > "CHECK" suggests it's only used as a comparison mask. But now it's used > further as a config-conditional preempt disabler offset. Lets > disambiguate this name. > > Signed-off-by: Frederic Weisbecker <[email protected]> > Signed-off-by: Peter Zijlstra (Intel) <[email protected]> > Cc: Linus Torvalds <[email protected]> > Cc: Peter Zijlstra <[email protected]> > Cc: Thomas Gleixner <[email protected]> > Link: > http://lkml.kernel.org/r/[email protected] > Signed-off-by: Ingo Molnar <[email protected]> > Signed-off-by: Mike Galbraith <[email protected]> > --- > include/linux/preempt_mask.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > --- a/include/linux/preempt_mask.h > +++ b/include/linux/preempt_mask.h > @@ -72,9 +72,9 @@ > #define in_nmi() (preempt_count() & NMI_MASK) > > #if defined(CONFIG_PREEMPT_COUNT) > -# define PREEMPT_CHECK_OFFSET 1 > +# define PREEMPT_DISABLE_OFFSET 1 > #else > -# define PREEMPT_CHECK_OFFSET 0 > +# define PREEMPT_DISABLE_OFFSET 0 > #endif > > /* > @@ -90,7 +90,7 @@ > * > * Work as expected. > */ > -#define SOFTIRQ_LOCK_OFFSET (SOFTIRQ_DISABLE_OFFSET + PREEMPT_CHECK_OFFSET) > +#define SOFTIRQ_LOCK_OFFSET (SOFTIRQ_DISABLE_OFFSET + PREEMPT_DISABLE_OFFSET) > > /* > * Are we running in atomic context? WARNING: this macro cannot > @@ -106,7 +106,7 @@ > * (used by the scheduler, *after* releasing the kernel lock) > */ > #define in_atomic_preempt_off() \ > - ((preempt_count() & ~PREEMPT_ACTIVE) != PREEMPT_CHECK_OFFSET) > + ((preempt_count() & ~PREEMPT_ACTIVE) != PREEMPT_DISABLE_OFFSET) > > #ifdef CONFIG_PREEMPT_COUNT > # define preemptible() (preempt_count() == 0 && !irqs_disabled()) > > > > > -- > To unsubscribe from this list: send the line "unsubscribe stable" in > the body of a message to [email protected] > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
