• Matt Fleming's avatar
    sched/core: Reset RQCF_ACT_SKIP before unpinning rq->lock · 92509b73
    Matt Fleming authored
    rq_clock() is called from sched_info_{depart,arrive}() after resetting
    RQCF_ACT_SKIP but prior to a call to update_rq_clock().
    
    In preparation for pending patches that check whether the rq clock has
    been updated inside of a pin context before rq_clock() is called, move
    the reset of rq->clock_skip_update immediately before unpinning the rq
    lock.
    
    This will avoid the new warnings which check if update_rq_clock() is
    being actively skipped.
    Signed-off-by: default avatarMatt Fleming <matt@codeblueprint.co.uk>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Byungchul Park <byungchul.park@lge.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Jan Kara <jack@suse.cz>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Luca Abeni <luca.abeni@unitn.it>
    Cc: Mel Gorman <mgorman@techsingularity.net>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Mike Galbraith <umgwanakikbuti@gmail.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Petr Mladek <pmladek@suse.com>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Wanpeng Li <wanpeng.li@hotmail.com>
    Cc: Yuyang Du <yuyang.du@intel.com>
    Link: http://lkml.kernel.org/r/20160921133813.31976-6-matt@codeblueprint.co.ukSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    92509b73
core.c 217 KB