Re: [RFC][PATCH 09/11] sched, x86: Kill saved_preempt_count

From: Peter Zijlstra
Date: Tue Sep 29 2015 - 11:52:42 EST


On Tue, Sep 29, 2015 at 11:44:04AM -0400, Steven Rostedt wrote:
> On Tue, 29 Sep 2015 11:28:34 +0200
> Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> > With the introduction of the context switch preempt_count invariant,
> > and the demise of PREEMPT_ACTIVE, its pointless to save/restore the
> > per-cpu preemption count, it must always be 2.
> >
> > Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
>
> Should we add a warn on someplace:
>
> WARN_ON_ONCE(preempt_count() != 2)

See v2 12/11 :-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/