aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2015-03-25 17:15:14 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-04-10 20:25:01 -0400
commitd5cdc3c4c22fce5a187b51736f3d0dc3e6cbe282 (patch)
tree0d866cba744a0facc679059eb94f30112a97c05e /drivers
parentcdde51b9fe83a20fd6c50e81473e6ffb5ba63b92 (diff)
intel_idle: mark cpu id array as __initconst
The CPU ids are only tested in intel_idle_probe() which is itself an __init function. For the MODULE_DEVICE_TABLE() file2alias doesn't care about the section, just about the symbol name. So it's safe to mark the cpu id array as __initconst so its memory can be released after initialization is done. Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/idle/intel_idle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
index b0e58522780d..f5b7fc56fa4a 100644
--- a/drivers/idle/intel_idle.c
+++ b/drivers/idle/intel_idle.c
@@ -776,7 +776,7 @@ static const struct idle_cpu idle_cpu_avn = {
776#define ICPU(model, cpu) \ 776#define ICPU(model, cpu) \
777 { X86_VENDOR_INTEL, 6, model, X86_FEATURE_MWAIT, (unsigned long)&cpu } 777 { X86_VENDOR_INTEL, 6, model, X86_FEATURE_MWAIT, (unsigned long)&cpu }
778 778
779static const struct x86_cpu_id intel_idle_ids[] = { 779static const struct x86_cpu_id intel_idle_ids[] __initconst = {
780 ICPU(0x1a, idle_cpu_nehalem), 780 ICPU(0x1a, idle_cpu_nehalem),
781 ICPU(0x1e, idle_cpu_nehalem), 781 ICPU(0x1e, idle_cpu_nehalem),
782 ICPU(0x1f, idle_cpu_nehalem), 782 ICPU(0x1f, idle_cpu_nehalem),