diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-08-03 00:40:16 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-08-28 20:53:35 -0400 |
commit | 8d15a3e55f49678b0900dcf5c1cddb322a129325 (patch) | |
tree | c86205bde42833c25bf2f3b51f8b67f9d4e52a22 /arch/ppc64/kernel/sysfs.c | |
parent | 1ababe11480d59d75be806804c71fa55d203a5a6 (diff) |
[PATCH] ppc64: make firmware_has_feature() stronger
Make firmware_has_feature() evaluate at compile time for the non pSeries
case and tidy up code where possible.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/sysfs.c')
-rw-r--r-- | arch/ppc64/kernel/sysfs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/sysfs.c b/arch/ppc64/kernel/sysfs.c index e399963521c0..eca15d25e026 100644 --- a/arch/ppc64/kernel/sysfs.c +++ b/arch/ppc64/kernel/sysfs.c | |||
@@ -153,11 +153,9 @@ void ppc64_enable_pmcs(void) | |||
153 | break; | 153 | break; |
154 | } | 154 | } |
155 | 155 | ||
156 | #ifdef CONFIG_PPC_PSERIES | ||
157 | /* instruct hypervisor to maintain PMCs */ | 156 | /* instruct hypervisor to maintain PMCs */ |
158 | if (firmware_has_feature(FW_FEATURE_SPLPAR)) | 157 | if (firmware_has_feature(FW_FEATURE_SPLPAR)) |
159 | get_paca()->lppaca.pmcregs_in_use = 1; | 158 | get_paca()->lppaca.pmcregs_in_use = 1; |
160 | #endif /* CONFIG_PPC_PSERIES */ | ||
161 | } | 159 | } |
162 | 160 | ||
163 | #else | 161 | #else |