diff options
| author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2012-03-26 08:51:27 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2012-03-30 01:55:22 -0400 |
| commit | db70b04407a63668e5fee773f76f90367492fd25 (patch) | |
| tree | 65bc28cc822c9ea2f93b7bffbda00c44e5acb526 | |
| parent | fc850f39ea54c760ce438a601cfea8ab80c4898e (diff) | |
cpuidle: remove useless array definition in cpuidle_structure
All the modules name are ro-data, it is never copied to the array.
eg.
static struct cpuidle_driver intel_idle_driver = {
.name = "intel_idle",
.owner = THIS_MODULE,
};
It safe to assign the pointer of this ro-data to a const char *.
By this way we save 12 bytes.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Tested-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Signed-off-by: Len Brown <len.brown@intel.com>
| -rw-r--r-- | include/linux/cpuidle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index ca4e4983773f..f7f1d9040da3 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
| @@ -120,7 +120,7 @@ static inline int cpuidle_get_last_residency(struct cpuidle_device *dev) | |||
| 120 | ****************************/ | 120 | ****************************/ |
| 121 | 121 | ||
| 122 | struct cpuidle_driver { | 122 | struct cpuidle_driver { |
| 123 | char name[CPUIDLE_NAME_LEN]; | 123 | const char *name; |
| 124 | struct module *owner; | 124 | struct module *owner; |
| 125 | 125 | ||
| 126 | unsigned int power_specified:1; | 126 | unsigned int power_specified:1; |
