X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-powerpc%2Ftime.h;h=912118db13ae7d183a41a46b2236edc4d1bc08a2;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=5785ac4737b5ee7575837b2d8e8d9c05b752f8cd;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/include/asm-powerpc/time.h b/include/asm-powerpc/time.h index 5785ac473..912118db1 100644 --- a/include/asm-powerpc/time.h +++ b/include/asm-powerpc/time.h @@ -14,13 +14,13 @@ #define __POWERPC_TIME_H #ifdef __KERNEL__ +#include #include #include #include -#ifdef CONFIG_PPC_ISERIES +#ifdef CONFIG_PPC64 #include -#include #include #endif @@ -30,6 +30,10 @@ extern unsigned long tb_ticks_per_usec; extern unsigned long tb_ticks_per_sec; extern u64 tb_to_xs; extern unsigned tb_to_us; +extern unsigned long tb_last_stamp; +extern u64 tb_last_jiffy; + +DECLARE_PER_CPU(unsigned long, last_jiffy); struct rtc_time; extern void to_tm(int tim, struct rtc_time * tm); @@ -174,8 +178,7 @@ static inline void set_dec(int val) #ifdef CONFIG_PPC_ISERIES int cur_dec; - if (firmware_has_feature(FW_FEATURE_ISERIES) && - get_lppaca()->shared_proc) { + if (get_lppaca()->shared_proc) { get_lppaca()->virtual_decr = val; cur_dec = get_dec(); if (cur_dec > val)