diff options
author | Michael Neuling <mikey@neuling.org> | 2006-07-27 23:58:37 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-08-06 22:03:49 -0400 |
commit | afd05423e02bc7391a7489b686ba1e166b6e8349 (patch) | |
tree | 040a752095e88afbebda9eea7cbfa34dcfdf1de8 /arch/powerpc/kernel/sysfs.c | |
parent | b9377ffc3a03cde558d76349a262a1adbb6d3112 (diff) |
[POWERPC] Enable PURR sysfs entry correctly
We have CPU_FTR_PURR now, so let's use it.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/sysfs.c')
-rw-r--r-- | arch/powerpc/kernel/sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c index ae927a4e46e4..406f308ddead 100644 --- a/arch/powerpc/kernel/sysfs.c +++ b/arch/powerpc/kernel/sysfs.c | |||
@@ -230,7 +230,7 @@ static void register_cpu_online(unsigned int cpu) | |||
230 | if (cur_cpu_spec->num_pmcs >= 8) | 230 | if (cur_cpu_spec->num_pmcs >= 8) |
231 | sysdev_create_file(s, &attr_pmc8); | 231 | sysdev_create_file(s, &attr_pmc8); |
232 | 232 | ||
233 | if (cpu_has_feature(CPU_FTR_SMT)) | 233 | if (cpu_has_feature(CPU_FTR_PURR)) |
234 | sysdev_create_file(s, &attr_purr); | 234 | sysdev_create_file(s, &attr_purr); |
235 | } | 235 | } |
236 | 236 | ||
@@ -272,7 +272,7 @@ static void unregister_cpu_online(unsigned int cpu) | |||
272 | if (cur_cpu_spec->num_pmcs >= 8) | 272 | if (cur_cpu_spec->num_pmcs >= 8) |
273 | sysdev_remove_file(s, &attr_pmc8); | 273 | sysdev_remove_file(s, &attr_pmc8); |
274 | 274 | ||
275 | if (cpu_has_feature(CPU_FTR_SMT)) | 275 | if (cpu_has_feature(CPU_FTR_PURR)) |
276 | sysdev_remove_file(s, &attr_purr); | 276 | sysdev_remove_file(s, &attr_purr); |
277 | } | 277 | } |
278 | #endif /* CONFIG_HOTPLUG_CPU */ | 278 | #endif /* CONFIG_HOTPLUG_CPU */ |