diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-08-03 00:35:25 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-08-28 20:53:35 -0400 |
commit | 1ababe11480d59d75be806804c71fa55d203a5a6 (patch) | |
tree | c9c8e21945479daa3ae8784588648b9c9bb5206f /arch/ppc64/kernel/pSeries_setup.c | |
parent | 7a6af5e38054d8e658a4b1b703902331a845de1a (diff) |
[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/pSeries_setup.c')
-rw-r--r-- | arch/ppc64/kernel/pSeries_setup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ppc64/kernel/pSeries_setup.c b/arch/ppc64/kernel/pSeries_setup.c index d3975ac71cfb..0058f32a3d89 100644 --- a/arch/ppc64/kernel/pSeries_setup.c +++ b/arch/ppc64/kernel/pSeries_setup.c | |||
@@ -60,7 +60,7 @@ | |||
60 | #include <asm/nvram.h> | 60 | #include <asm/nvram.h> |
61 | #include <asm/plpar_wrappers.h> | 61 | #include <asm/plpar_wrappers.h> |
62 | #include <asm/xics.h> | 62 | #include <asm/xics.h> |
63 | #include <asm/cputable.h> | 63 | #include <asm/firmware.h> |
64 | 64 | ||
65 | #include "i8259.h" | 65 | #include "i8259.h" |
66 | #include "mpic.h" | 66 | #include "mpic.h" |
@@ -231,11 +231,11 @@ static void __init pSeries_setup_arch(void) | |||
231 | 231 | ||
232 | pSeries_nvram_init(); | 232 | pSeries_nvram_init(); |
233 | 233 | ||
234 | if (ppc64_firmware_features & FW_FEATURE_SPLPAR) | 234 | if (firmware_has_feature(FW_FEATURE_SPLPAR)) |
235 | vpa_init(boot_cpuid); | 235 | vpa_init(boot_cpuid); |
236 | 236 | ||
237 | /* Choose an idle loop */ | 237 | /* Choose an idle loop */ |
238 | if (ppc64_firmware_features & FW_FEATURE_SPLPAR) { | 238 | if (firmware_has_feature(FW_FEATURE_SPLPAR)) { |
239 | if (get_paca()->lppaca.shared_proc) { | 239 | if (get_paca()->lppaca.shared_proc) { |
240 | printk(KERN_INFO "Using shared processor idle loop\n"); | 240 | printk(KERN_INFO "Using shared processor idle loop\n"); |
241 | ppc_md.idle_loop = pseries_shared_idle; | 241 | ppc_md.idle_loop = pseries_shared_idle; |