lkml.org 
[lkml]   [2015]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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


    \
     
     \ /
      Last update: 2015-09-29 18:01    [W:4.580 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site