diff options
author | Paul Burton <paul.burton@imgtec.com> | 2014-01-08 11:23:35 +0000 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2014-12-03 14:51:47 +0800 |
commit | a41a909903408d2141529259b9d2dd576f2ddc79 (patch) | |
tree | 4205269c07c7ae10098ed148634b0fa74db893bd | |
parent | ce0018f9149e46f55d50d5fd3f6e1439f77c66ac (diff) |
cpuidle: declare cpuidle_dev in cpuidle.h
Declaring this allows drivers which need to initialise each struct
cpuidle_device at initialisation time to make use of the structures
already defined in cpuidle.c, rather than having to wastefully define
their own.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
(cherry picked from commit f08dbf8a61462aa122b9b5077849a3f4bd84702a)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
-rw-r--r-- | include/linux/cpuidle.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 61e74afe581..3d2e23125cc 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h @@ -82,6 +82,7 @@ struct cpuidle_device { }; DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices); +DECLARE_PER_CPU(struct cpuidle_device, cpuidle_dev); /** * cpuidle_get_last_residency - retrieves the last state's residency time |