Skip to content
  • Kevin Hilman's avatar
    idle: Fix hlt/nohlt command-line handling in new generic idle · 485cf5da
    Kevin Hilman authored
    commit d1669912
    
     (idle: Implement generic idle function) added a new
    generic idle along with support for hlt/nohlt command line options to
    override default idle loop behavior.  However, the command-line
    processing is never compiled.
    
    The command-line handling is wrapped by CONFIG_GENERIC_IDLE_POLL_SETUP
    and arches that use this feature select it in their Kconfigs.
    However, no Kconfig definition was created for this option, so it is
    never enabled, and therefore command-line override of the idle-loop
    behavior is broken after migrating to the generic idle loop.
    
    To fix, add a Kconfig definition for GENERIC_IDLE_POLL_SETUP.
    
    Tested on ARM (OMAP4/Panda) which enables the command-line overrides
    by default.
    
    Signed-off-by: default avatarKevin Hilman <khilman@linaro.org>
    Reviewed-by: default avatarSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Rusty Russell <rusty@rustcorp.com.au>
    Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Magnus Damm <magnus.damm@gmail.com>
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linaro-kernel@lists.linaro.org
    Link: http://lkml.kernel.org/r/1366849153-25564-1-git-send-email-khilman@linaro.org
    
    
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    485cf5da