aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/time.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-08-03 00:40:16 -0400
committerPaul Mackerras <paulus@samba.org>2005-08-28 20:53:35 -0400
commit8d15a3e55f49678b0900dcf5c1cddb322a129325 (patch)
treec86205bde42833c25bf2f3b51f8b67f9d4e52a22 /arch/ppc64/kernel/time.c
parent1ababe11480d59d75be806804c71fa55d203a5a6 (diff)
[PATCH] ppc64: make firmware_has_feature() stronger
Make firmware_has_feature() evaluate at compile time for the non pSeries case and tidy up code where possible. 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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/ppc64/kernel/time.c b/arch/ppc64/kernel/time.c
index d523056fd660..1696e1b05bb9 100644
--- a/arch/ppc64/kernel/time.c
+++ b/arch/ppc64/kernel/time.c
@@ -371,13 +371,11 @@ int timer_interrupt(struct pt_regs * regs)
371 process_hvlpevents(regs); 371 process_hvlpevents(regs);
372#endif 372#endif
373 373
374/* collect purr register values often, for accurate calculations */ 374 /* collect purr register values often, for accurate calculations */
375#if defined(CONFIG_PPC_PSERIES)
376 if (firmware_has_feature(FW_FEATURE_SPLPAR)) { 375 if (firmware_has_feature(FW_FEATURE_SPLPAR)) {
377 struct cpu_usage *cu = &__get_cpu_var(cpu_usage_array); 376 struct cpu_usage *cu = &__get_cpu_var(cpu_usage_array);
378 cu->current_tb = mfspr(SPRN_PURR); 377 cu->current_tb = mfspr(SPRN_PURR);
379 } 378 }
380#endif
381 379
382 irq_exit(); 380 irq_exit();
383 381