diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-01-10 11:43:23 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-01-23 00:36:59 +0100 |
commit | cbd2c4c25d7e0ba7afe42f2397865b164d1109eb (patch) | |
tree | aedb154f7d044ef69c4c14a82b92a02353d875d7 /drivers/idle | |
parent | e6cf623ba3f83118b0f75be2cc1675931e21c887 (diff) | |
download | linux-stable-cbd2c4c25d7e0ba7afe42f2397865b164d1109eb.tar.gz linux-stable-cbd2c4c25d7e0ba7afe42f2397865b164d1109eb.tar.bz2 linux-stable-cbd2c4c25d7e0ba7afe42f2397865b164d1109eb.zip |
intel_idle: Eliminate __setup_broadcast_timer()
The __setup_broadcast_timer() static function is only called in one
place and "true" is passed to it as the argument in there, so
effectively it is a wrapper arround tick_broadcast_enable().
To simplify the code, call tick_broadcast_enable() directly instead
of __setup_broadcast_timer() and drop the latter.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/idle')
-rw-r--r-- | drivers/idle/intel_idle.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index 1467490adfc3..33e353bdd4b6 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -967,14 +967,6 @@ static bool intel_idle_verify_cstate(unsigned int mwait_hint) return true; } -static void __setup_broadcast_timer(bool on) -{ - if (on) - tick_broadcast_enable(); - else - tick_broadcast_disable(); -} - static void auto_demotion_disable(void) { unsigned long long msr_bits; @@ -1624,7 +1616,7 @@ static int intel_idle_cpu_online(unsigned int cpu) struct cpuidle_device *dev; if (lapic_timer_reliable_states != LAPIC_TIMER_ALWAYS_RELIABLE) - __setup_broadcast_timer(true); + tick_broadcast_enable(); /* * Some systems can hotplug a cpu at runtime after |