aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/process.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-08-03 00:35:25 -0400
committerPaul Mackerras <paulus@samba.org>2005-08-28 20:53:35 -0400
commit1ababe11480d59d75be806804c71fa55d203a5a6 (patch)
treec9c8e21945479daa3ae8784588648b9c9bb5206f /arch/ppc64/kernel/process.c
parent7a6af5e38054d8e658a4b1b703902331a845de1a (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/process.c')
-rw-r--r--arch/ppc64/kernel/process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/process.c b/arch/ppc64/kernel/process.c
index 390f434283af..9bad983333b1 100644
--- a/arch/ppc64/kernel/process.c
+++ b/arch/ppc64/kernel/process.c
@@ -50,6 +50,7 @@
50#include <asm/machdep.h> 50#include <asm/machdep.h>
51#include <asm/iSeries/HvCallHpt.h> 51#include <asm/iSeries/HvCallHpt.h>
52#include <asm/cputable.h> 52#include <asm/cputable.h>
53#include <asm/firmware.h>
53#include <asm/sections.h> 54#include <asm/sections.h>
54#include <asm/tlbflush.h> 55#include <asm/tlbflush.h>
55#include <asm/time.h> 56#include <asm/time.h>
@@ -206,7 +207,7 @@ struct task_struct *__switch_to(struct task_struct *prev,
206/* purr is nothing but processor time base */ 207/* purr is nothing but processor time base */
207 208
208#if defined(CONFIG_PPC_PSERIES) 209#if defined(CONFIG_PPC_PSERIES)
209 if (ppc64_firmware_features & FW_FEATURE_SPLPAR) { 210 if (firmware_has_feature(FW_FEATURE_SPLPAR)) {
210 struct cpu_usage *cu = &__get_cpu_var(cpu_usage_array); 211 struct cpu_usage *cu = &__get_cpu_var(cpu_usage_array);
211 long unsigned start_tb, current_tb; 212 long unsigned start_tb, current_tb;
212 start_tb = old_thread->start_tb; 213 start_tb = old_thread->start_tb;