diff options
Diffstat (limited to 'include/asm-powerpc/time.h')
| -rw-r--r-- | include/asm-powerpc/time.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/asm-powerpc/time.h b/include/asm-powerpc/time.h index 4463148c659f..5785ac4737b5 100644 --- a/include/asm-powerpc/time.h +++ b/include/asm-powerpc/time.h | |||
| @@ -18,8 +18,9 @@ | |||
| 18 | #include <linux/percpu.h> | 18 | #include <linux/percpu.h> |
| 19 | 19 | ||
| 20 | #include <asm/processor.h> | 20 | #include <asm/processor.h> |
| 21 | #ifdef CONFIG_PPC64 | 21 | #ifdef CONFIG_PPC_ISERIES |
| 22 | #include <asm/paca.h> | 22 | #include <asm/paca.h> |
| 23 | #include <asm/firmware.h> | ||
| 23 | #include <asm/iseries/hv_call.h> | 24 | #include <asm/iseries/hv_call.h> |
| 24 | #endif | 25 | #endif |
| 25 | 26 | ||
| @@ -29,10 +30,6 @@ extern unsigned long tb_ticks_per_usec; | |||
| 29 | extern unsigned long tb_ticks_per_sec; | 30 | extern unsigned long tb_ticks_per_sec; |
| 30 | extern u64 tb_to_xs; | 31 | extern u64 tb_to_xs; |
| 31 | extern unsigned tb_to_us; | 32 | extern unsigned tb_to_us; |
| 32 | extern unsigned long tb_last_stamp; | ||
| 33 | extern u64 tb_last_jiffy; | ||
| 34 | |||
| 35 | DECLARE_PER_CPU(unsigned long, last_jiffy); | ||
| 36 | 33 | ||
| 37 | struct rtc_time; | 34 | struct rtc_time; |
| 38 | extern void to_tm(int tim, struct rtc_time * tm); | 35 | extern void to_tm(int tim, struct rtc_time * tm); |
| @@ -177,7 +174,8 @@ static inline void set_dec(int val) | |||
| 177 | #ifdef CONFIG_PPC_ISERIES | 174 | #ifdef CONFIG_PPC_ISERIES |
| 178 | int cur_dec; | 175 | int cur_dec; |
| 179 | 176 | ||
| 180 | if (get_lppaca()->shared_proc) { | 177 | if (firmware_has_feature(FW_FEATURE_ISERIES) && |
| 178 | get_lppaca()->shared_proc) { | ||
| 181 | get_lppaca()->virtual_decr = val; | 179 | get_lppaca()->virtual_decr = val; |
| 182 | cur_dec = get_dec(); | 180 | cur_dec = get_dec(); |
| 183 | if (cur_dec > val) | 181 | if (cur_dec > val) |
