cpufreq: Use static SRCU initializer
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 25 May 2018 10:19:58 +0000 (12:19 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 May 2018 09:16:59 +0000 (11:16 +0200)
commitcc85de361d99490df182e63d13f409054a579a13
treee25832af936e4dc7e4a0c13da67f44f6f540eff2
parent9c80172b902db58233346adbb139cfdcb9229f0f
cpufreq: Use static SRCU initializer

Use the static SRCU initializer for `cpufreq_transition_notifier_list'.
This avoids the init_cpufreq_transition_notifier_list() initcall. Its
only purpose is to initialize the SRCU notifier once during boot and set
another variable which is used as an indicator whether the init was
perfromed before cpufreq_register_notifier() was used.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c