提交 afd05423 编写于 作者: M Michael Neuling 提交者: Paul Mackerras

[POWERPC] Enable PURR sysfs entry correctly

We have CPU_FTR_PURR now, so let's use it.
Signed-off-by: NMichael Neuling <mikey@neuling.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 b9377ffc
...@@ -230,7 +230,7 @@ static void register_cpu_online(unsigned int cpu) ...@@ -230,7 +230,7 @@ static void register_cpu_online(unsigned int cpu)
if (cur_cpu_spec->num_pmcs >= 8) if (cur_cpu_spec->num_pmcs >= 8)
sysdev_create_file(s, &attr_pmc8); sysdev_create_file(s, &attr_pmc8);
if (cpu_has_feature(CPU_FTR_SMT)) if (cpu_has_feature(CPU_FTR_PURR))
sysdev_create_file(s, &attr_purr); sysdev_create_file(s, &attr_purr);
} }
...@@ -272,7 +272,7 @@ static void unregister_cpu_online(unsigned int cpu) ...@@ -272,7 +272,7 @@ static void unregister_cpu_online(unsigned int cpu)
if (cur_cpu_spec->num_pmcs >= 8) if (cur_cpu_spec->num_pmcs >= 8)
sysdev_remove_file(s, &attr_pmc8); sysdev_remove_file(s, &attr_pmc8);
if (cpu_has_feature(CPU_FTR_SMT)) if (cpu_has_feature(CPU_FTR_PURR))
sysdev_remove_file(s, &attr_purr); sysdev_remove_file(s, &attr_purr);
} }
#endif /* CONFIG_HOTPLUG_CPU */ #endif /* CONFIG_HOTPLUG_CPU */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册