[PATCH] PURR should use correct cpu feature bit

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE7289d

2 messages, 2 authors, 2006-08-18 · open the first message on its own page

[PATCH] PURR should use correct cpu feature bit

From: Anton Blanchard <hidden>
Date: 2006-08-18 18:48:22

Now we have a PURR cpu feature bit, we should use it in sysfs code.

Signed-off-by: Anton Blanchard <redacted>
---
diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c
index fec228c..a8172de 100644
--- a/arch/powerpc/kernel/sysfs.c
+++ b/arch/powerpc/kernel/sysfs.c
@@ -231,7 +231,7 @@ #endif
 	if (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 @@ #endif
 	if (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 */

Re: [PATCH] PURR should use correct cpu feature bit

From: Michael Neuling <hidden>
Date: 2006-08-18 19:32:00

Now we have a PURR cpu feature bit, we should use it in sysfs code.
Snap... Paulus has this in his tree for 2.6.19

http://git.kernel.org/git/?p=linux/kernel/git/paulus/powerpc.git;a=commit;h=afd05423e02bc7391a7489b686ba1e166b6e8349

Mikey
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help