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

From: Steven Rostedt
Date: Tue Sep 29 2015 - 11:44:22 EST


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)

?

-- Steve
--
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/