• Thomas Gleixner's avatar
    cpu/hotplug: Restructure FROZEN state handling · 090e77c3
    Thomas Gleixner authored
    There are only a few callbacks which really care about FROZEN
    vs. !FROZEN. No need to have extra states for this.
    
    Publish the frozen state in an extra variable which is updated under
    the hotplug lock and let the users interested deal with it w/o
    imposing that extra state checks on everyone.
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Cc: linux-arch@vger.kernel.org
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Rafael Wysocki <rafael.j.wysocki@intel.com>
    Cc: "Srivatsa S. Bhat" <srivatsa@mit.edu>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Arjan van de Ven <arjan@linux.intel.com>
    Cc: Sebastian Siewior <bigeasy@linutronix.de>
    Cc: Rusty Russell <rusty@rustcorp.com.au>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Tejun Heo <tj@kernel.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Paul Turner <pjt@google.com>
    Link: http://lkml.kernel.org/r/20160226182340.334912357@linutronix.deSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    090e77c3
cpu.c 18.5 KB