diff options
Diffstat (limited to 'arch/ppc64/kernel/sysfs.c')
-rw-r--r-- | arch/ppc64/kernel/sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/sysfs.c b/arch/ppc64/kernel/sysfs.c index 90b653c724fa..e399963521c0 100644 --- a/arch/ppc64/kernel/sysfs.c +++ b/arch/ppc64/kernel/sysfs.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <asm/current.h> | 13 | #include <asm/current.h> |
14 | #include <asm/processor.h> | 14 | #include <asm/processor.h> |
15 | #include <asm/cputable.h> | 15 | #include <asm/cputable.h> |
16 | #include <asm/firmware.h> | ||
16 | #include <asm/hvcall.h> | 17 | #include <asm/hvcall.h> |
17 | #include <asm/prom.h> | 18 | #include <asm/prom.h> |
18 | #include <asm/systemcfg.h> | 19 | #include <asm/systemcfg.h> |
@@ -154,7 +155,7 @@ void ppc64_enable_pmcs(void) | |||
154 | 155 | ||
155 | #ifdef CONFIG_PPC_PSERIES | 156 | #ifdef CONFIG_PPC_PSERIES |
156 | /* instruct hypervisor to maintain PMCs */ | 157 | /* instruct hypervisor to maintain PMCs */ |
157 | if (ppc64_firmware_features & FW_FEATURE_SPLPAR) | 158 | if (firmware_has_feature(FW_FEATURE_SPLPAR)) |
158 | get_paca()->lppaca.pmcregs_in_use = 1; | 159 | get_paca()->lppaca.pmcregs_in_use = 1; |
159 | #endif /* CONFIG_PPC_PSERIES */ | 160 | #endif /* CONFIG_PPC_PSERIES */ |
160 | } | 161 | } |