diff options
Diffstat (limited to 'arch/powerpc/kernel/sysfs.c')
-rw-r--r-- | arch/powerpc/kernel/sysfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c index ef2ad92a417f..86a2ffccef25 100644 --- a/arch/powerpc/kernel/sysfs.c +++ b/arch/powerpc/kernel/sysfs.c | |||
@@ -134,6 +134,7 @@ void ppc_enable_pmcs(void) | |||
134 | } | 134 | } |
135 | EXPORT_SYMBOL(ppc_enable_pmcs); | 135 | EXPORT_SYMBOL(ppc_enable_pmcs); |
136 | 136 | ||
137 | #if defined(CONFIG_6xx) || defined(CONFIG_PPC64) | ||
137 | /* XXX convert to rusty's on_one_cpu */ | 138 | /* XXX convert to rusty's on_one_cpu */ |
138 | static unsigned long run_on_cpu(unsigned long cpu, | 139 | static unsigned long run_on_cpu(unsigned long cpu, |
139 | unsigned long (*func)(unsigned long), | 140 | unsigned long (*func)(unsigned long), |
@@ -152,6 +153,7 @@ static unsigned long run_on_cpu(unsigned long cpu, | |||
152 | 153 | ||
153 | return ret; | 154 | return ret; |
154 | } | 155 | } |
156 | #endif | ||
155 | 157 | ||
156 | #define SYSFS_PMCSETUP(NAME, ADDRESS) \ | 158 | #define SYSFS_PMCSETUP(NAME, ADDRESS) \ |
157 | static unsigned long read_##NAME(unsigned long junk) \ | 159 | static unsigned long read_##NAME(unsigned long junk) \ |
@@ -190,11 +192,11 @@ static ssize_t __used \ | |||
190 | * that are implemented on the current processor | 192 | * that are implemented on the current processor |
191 | */ | 193 | */ |
192 | 194 | ||
193 | #ifdef CONFIG_PPC64 | 195 | #if defined(CONFIG_PPC64) |
194 | #define HAS_PPC_PMC_CLASSIC 1 | 196 | #define HAS_PPC_PMC_CLASSIC 1 |
195 | #define HAS_PPC_PMC_IBM 1 | 197 | #define HAS_PPC_PMC_IBM 1 |
196 | #define HAS_PPC_PMC_PA6T 1 | 198 | #define HAS_PPC_PMC_PA6T 1 |
197 | #elif CONFIG_6xx | 199 | #elif defined(CONFIG_6xx) |
198 | #define HAS_PPC_PMC_CLASSIC 1 | 200 | #define HAS_PPC_PMC_CLASSIC 1 |
199 | #define HAS_PPC_PMC_IBM 1 | 201 | #define HAS_PPC_PMC_IBM 1 |
200 | #define HAS_PPC_PMC_G4 1 | 202 | #define HAS_PPC_PMC_G4 1 |