Enable PURR sysfs entry correctly
PATCH 1/1 Enable PURR sysfs entry correctly
We have CPU_FTR_PURR now, so let's use it.
Signed-off-by Michael Neuling <[email protected]>
--- arch/powerpc/kernel/sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/kernel/sysfs.c +2 -2
@@ -231,7 +231,7 @@ static void register_cpu_online(unsignedif (cur_cpu_spec->num_pmcs >=8 )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); }
@@ -273,7 +273,7 @@ static void unregister_cpu_online(unsignif (cur_cpu_spec->num_pmcs >=8 )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); }#endif /* CONFIG_HOTPLUG_CPU */