提交 d5cdc3c4 编写于 作者: M Mathias Krause 提交者: Rafael J. Wysocki

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: NMathias Krause <minipli@googlemail.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 cdde51b9
...@@ -776,7 +776,7 @@ static const struct idle_cpu idle_cpu_avn = { ...@@ -776,7 +776,7 @@ static const struct idle_cpu idle_cpu_avn = {
#define ICPU(model, cpu) \ #define ICPU(model, cpu) \
{ X86_VENDOR_INTEL, 6, model, X86_FEATURE_MWAIT, (unsigned long)&cpu } { X86_VENDOR_INTEL, 6, model, X86_FEATURE_MWAIT, (unsigned long)&cpu }
static const struct x86_cpu_id intel_idle_ids[] = { static const struct x86_cpu_id intel_idle_ids[] __initconst = {
ICPU(0x1a, idle_cpu_nehalem), ICPU(0x1a, idle_cpu_nehalem),
ICPU(0x1e, idle_cpu_nehalem), ICPU(0x1e, idle_cpu_nehalem),
ICPU(0x1f, idle_cpu_nehalem), ICPU(0x1f, idle_cpu_nehalem),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册