diff options
Diffstat (limited to 'arch/powerpc/include/asm/time.h')
| -rw-r--r-- | arch/powerpc/include/asm/time.h | 19 | 
1 files changed, 9 insertions, 10 deletions
diff --git a/arch/powerpc/include/asm/time.h b/arch/powerpc/include/asm/time.h index 8c2c3dd4ddba..924b2157882f 100644 --- a/arch/powerpc/include/asm/time.h +++ b/arch/powerpc/include/asm/time.h @@ -18,6 +18,8 @@  #include <asm/vdso/timebase.h>  /* time.c */ +extern u64 decrementer_max; +  extern unsigned long tb_ticks_per_jiffy;  extern unsigned long tb_ticks_per_usec;  extern unsigned long tb_ticks_per_sec; @@ -97,19 +99,16 @@ extern void div128_by_32(u64 dividend_high, u64 dividend_low,  extern void secondary_cpu_time_init(void);  extern void __init time_init(void); -#ifdef CONFIG_PPC64 -static inline unsigned long test_irq_work_pending(void) -{ -	unsigned long x; +DECLARE_PER_CPU(u64, decrementers_next_tb); -	asm volatile("lbz %0,%1(13)" -		: "=r" (x) -		: "i" (offsetof(struct paca_struct, irq_work_pending))); -	return x; +static inline u64 timer_get_next_tb(void) +{ +	return __this_cpu_read(decrementers_next_tb);  } -#endif -DECLARE_PER_CPU(u64, decrementers_next_tb); +#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE +void timer_rearm_host_dec(u64 now); +#endif  /* Convert timebase ticks to nanoseconds */  unsigned long long tb_to_ns(unsigned long long tb_ticks);  |