]> err.no Git - linux-2.6/commitdiff
[POWERPC] update asm-powerpc/time.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 28 Jun 2006 01:51:41 +0000 (11:51 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 28 Jun 2006 05:18:56 +0000 (15:18 +1000)
If we ever build a combined kernel including iSeries, then this will
be needed.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/time.h

index 4463148c659f9672b4b4cadf48d79a037a462dcc..dcde4410348d2da87c890c6cb9fe8a2f30dcb69f 100644 (file)
@@ -18,8 +18,9 @@
 #include <linux/percpu.h>
 
 #include <asm/processor.h>
-#ifdef CONFIG_PPC64
+#ifdef CONFIG_PPC_ISERIES
 #include <asm/paca.h>
+#include <asm/firmware.h>
 #include <asm/iseries/hv_call.h>
 #endif
 
@@ -177,7 +178,8 @@ static inline void set_dec(int val)
 #ifdef CONFIG_PPC_ISERIES
        int cur_dec;
 
-       if (get_lppaca()->shared_proc) {
+       if (firmware_has_feature(FW_FEATURE_ISERIES) &&
+                       get_lppaca()->shared_proc) {
                get_lppaca()->virtual_decr = val;
                cur_dec = get_dec();
                if (cur_dec > val)