From: Stephen Rothwell Date: Wed, 28 Jun 2006 01:51:41 +0000 (+1000) Subject: [POWERPC] update asm-powerpc/time.h X-Git-Tag: v2.6.18-rc1~358^2~16 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b47569a9d410199aea6386917fd0662809c60be;p=linux-2.6 [POWERPC] update asm-powerpc/time.h If we ever build a combined kernel including iSeries, then this will be needed. Signed-off-by: Stephen Rothwell Signed-off-by: Paul Mackerras --- diff --git a/include/asm-powerpc/time.h b/include/asm-powerpc/time.h index 4463148c65..dcde441034 100644 --- a/include/asm-powerpc/time.h +++ b/include/asm-powerpc/time.h @@ -18,8 +18,9 @@ #include #include -#ifdef CONFIG_PPC64 +#ifdef CONFIG_PPC_ISERIES #include +#include #include #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)