Messages in this thread | | | Date | Tue, 29 Sep 2015 11:44:04 -0400 | From | Steven Rostedt <> | Subject | Re: [RFC][PATCH 09/11] sched, x86: Kill saved_preempt_count |
| |
On Tue, 29 Sep 2015 11:28:34 +0200 Peter Zijlstra <peterz@infradead.org> 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@infradead.org>
Should we add a warn on someplace:
WARN_ON_ONCE(preempt_count() != 2)
?
-- Steve
| |