Skip to content
GitLab
  • Explore
  • Sign in

Admin message

Due to an influx of spam, we have had to temporarily disable account registrations. Please write an email to accountsupport@archlinux.org, with your desired username, if you want to get access. Sorry for the inconvenience.

  • Arch LinuxArch Linux
  • Packaging
  • Upstream
  • linux-rtlinux-rt
  • Repository
  • linux-rt
  • drivers
  • cpuidle
  • cpuidle.c
Find file Blame History Permalink
  • Rafael J. Wysocki's avatar
    sched / idle: Call idle_set_state() from cpuidle_enter_state() · faad3849
    Rafael J. Wysocki authored May 10, 2015
    
    
    Introduce a wrapper function around idle_set_state() called
    sched_idle_set_state() that will pass this_rq() to it as the
    first argument and make cpuidle_enter_state() call the new
    function before and after entering the target state.
    
    At the same time, remove direct invocations of idle_set_state()
    from call_cpuidle().
    
    This will allow the invocation of default_idle_call() to be
    moved from call_cpuidle() to cpuidle_enter_state() safely
    and call_cpuidle() to be simplified a bit as a result.
    
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Reviewed-by: default avatarPreeti U Murthy <preeti@linux.vnet.ibm.com>
    Tested-by: default avatarPreeti U Murthy <preeti@linux.vnet.ibm.com>
    Tested-by: default avatarSudeep Holla <sudeep.holla@arm.com>
    Acked-by: default avatarKevin Hilman <khilman@linaro.org>
    faad3849