diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2018-11-01 11:15:58 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-11-08 18:53:00 +0100 |
commit | 3e452e636d006fa759a9914c044398869acba98f (patch) | |
tree | 71805279dc2594b51827f50e98a81efc0ec3554e /arch/xtensa/Kconfig | |
parent | 763f191af51f127cf8e69cd361f50bf6180768a5 (diff) | |
download | linux-3e452e636d006fa759a9914c044398869acba98f.tar.gz linux-3e452e636d006fa759a9914c044398869acba98f.tar.bz2 linux-3e452e636d006fa759a9914c044398869acba98f.zip |
ARM: cpuidle: Convert to use cpuidle_register|unregister()
The only reason that remains, to why the ARM cpuidle driver calls
cpuidle_register_driver(), is to avoid printing an error message in case
another driver already have been registered for the CPU. This seems a bit
silly, but more importantly, if that is a common scenario, perhaps we
should change cpuidle_register() accordingly instead.
In either case, let's consolidate the code, by converting to use
cpuidle_register|unregister(), which also avoids the unnecessary allocation
of the struct cpuidle_device.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/xtensa/Kconfig')
0 files changed, 0 insertions, 0 deletions