summaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/lparcfg.c
diff options
context:
space:
mode:
authorStephen Rothwell2005-08-03 06:35:25 +0200
committerPaul Mackerras2005-08-29 02:53:35 +0200
commit1ababe11480d59d75be806804c71fa55d203a5a6 (patch)
treec9c8e21945479daa3ae8784588648b9c9bb5206f /arch/ppc64/kernel/lparcfg.c
parent[PATCH] ppc64: remove firmware features from cpu_spec (diff)
downloadkernel-qcow2-linux-1ababe11480d59d75be806804c71fa55d203a5a6.tar.gz
kernel-qcow2-linux-1ababe11480d59d75be806804c71fa55d203a5a6.tar.xz
kernel-qcow2-linux-1ababe11480d59d75be806804c71fa55d203a5a6.zip
[PATCH] ppc64: create firmware_has_feature()
Create the firmware_has_feature() inline and move the firmware feature stuff into its own header file. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/lparcfg.c')
-rw-r--r--arch/ppc64/kernel/lparcfg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ppc64/kernel/lparcfg.c b/arch/ppc64/kernel/lparcfg.c
index 938353848cd0..9d034ff062b1 100644
--- a/arch/ppc64/kernel/lparcfg.c
+++ b/arch/ppc64/kernel/lparcfg.c
@@ -29,7 +29,7 @@
#include <asm/iSeries/HvLpConfig.h>
#include <asm/lppaca.h>
#include <asm/hvcall.h>
-#include <asm/cputable.h>
+#include <asm/firmware.h>
#include <asm/rtas.h>
#include <asm/system.h>
#include <asm/time.h>
@@ -377,7 +377,7 @@ static int lparcfg_data(struct seq_file *m, void *v)
partition_active_processors = lparcfg_count_active_processors();
- if (ppc64_firmware_features & FW_FEATURE_SPLPAR) {
+ if (firmware_has_feature(FW_FEATURE_SPLPAR)) {
unsigned long h_entitled, h_unallocated;
unsigned long h_aggregation, h_resource;
unsigned long pool_idle_time, pool_procs;
@@ -571,7 +571,7 @@ int __init lparcfg_init(void)
mode_t mode = S_IRUSR;
/* Allow writing if we have FW_FEATURE_SPLPAR */
- if (ppc64_firmware_features & FW_FEATURE_SPLPAR) {
+ if (firmware_has_feature(FW_FEATURE_SPLPAR)) {
lparcfg_fops.write = lparcfg_write;
mode |= S_IWUSR;
}