diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-08-29 03:14:37 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-08-30 03:06:33 +0200 |
commit | 1b39e3f813b4685c7a30ae964d5529a1b0e3a286 (patch) | |
tree | c99c7dfdb062f77af7076c398358dadfcdffa9ca /drivers/cpuidle/poll_state.c | |
parent | cpuidle: Move polling state initialization code to separate file (diff) | |
download | linux-1b39e3f813b4685c7a30ae964d5529a1b0e3a286.tar.xz linux-1b39e3f813b4685c7a30ae964d5529a1b0e3a286.zip |
cpuidle: Make drivers initialize polling state
Make the drivers that want to include the polling state into their
states table initialize it explicitly and drop the initialization of
it (which in fact is conditional, but that is not obvious from the
code) from the core.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/cpuidle/poll_state.c')
-rw-r--r-- | drivers/cpuidle/poll_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpuidle/poll_state.c b/drivers/cpuidle/poll_state.c index 0db4f7273952..7416b16287de 100644 --- a/drivers/cpuidle/poll_state.c +++ b/drivers/cpuidle/poll_state.c @@ -21,7 +21,7 @@ static int __cpuidle poll_idle(struct cpuidle_device *dev, return index; } -void poll_idle_init(struct cpuidle_driver *drv) +void cpuidle_poll_state_init(struct cpuidle_driver *drv) { struct cpuidle_state *state = &drv->states[0]; @@ -34,3 +34,4 @@ void poll_idle_init(struct cpuidle_driver *drv) state->disabled = false; state->flags = CPUIDLE_FLAG_POLLING; } +EXPORT_SYMBOL_GPL(cpuidle_poll_state_init); |