aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/time.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/time.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/time.c')
-rw-r--r--arch/ppc64/kernel/time.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/time.c b/arch/ppc64/kernel/time.c
index 1c05cee05315..d523056fd660 100644
--- a/arch/ppc64/kernel/time.c
+++ b/arch/ppc64/kernel/time.c
@@ -67,6 +67,7 @@
67#include <asm/prom.h> 67#include <asm/prom.h>
68#include <asm/sections.h> 68#include <asm/sections.h>
69#include <asm/systemcfg.h> 69#include <asm/systemcfg.h>
70#include <asm/firmware.h>
70 71
71u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES; 72u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
72 73
@@ -372,7 +373,7 @@ int timer_interrupt(struct pt_regs * regs)
372 373
373/* collect purr register values often, for accurate calculations */ 374/* collect purr register values often, for accurate calculations */
374#if defined(CONFIG_PPC_PSERIES) 375#if defined(CONFIG_PPC_PSERIES)
375 if (ppc64_firmware_features & FW_FEATURE_SPLPAR) { 376 if (firmware_has_feature(FW_FEATURE_SPLPAR)) {
376 struct cpu_usage *cu = &__get_cpu_var(cpu_usage_array); 377 struct cpu_usage *cu = &__get_cpu_var(cpu_usage_array);
377 cu->current_tb = mfspr(SPRN_PURR); 378 cu->current_tb = mfspr(SPRN_PURR);
378 } 379 }