diff options
Diffstat (limited to 'arch/ia64/include/asm/paravirt.h')
-rw-r--r-- | arch/ia64/include/asm/paravirt.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/ia64/include/asm/paravirt.h b/arch/ia64/include/asm/paravirt.h index 56f69f938cca..a73e77add7e2 100644 --- a/arch/ia64/include/asm/paravirt.h +++ b/arch/ia64/include/asm/paravirt.h | |||
@@ -225,6 +225,8 @@ struct pv_time_ops { | |||
225 | int (*do_steal_accounting)(unsigned long *new_itm); | 225 | int (*do_steal_accounting)(unsigned long *new_itm); |
226 | 226 | ||
227 | void (*clocksource_resume)(void); | 227 | void (*clocksource_resume)(void); |
228 | |||
229 | unsigned long long (*sched_clock)(void); | ||
228 | }; | 230 | }; |
229 | 231 | ||
230 | extern struct pv_time_ops pv_time_ops; | 232 | extern struct pv_time_ops pv_time_ops; |
@@ -242,6 +244,11 @@ paravirt_do_steal_accounting(unsigned long *new_itm) | |||
242 | return pv_time_ops.do_steal_accounting(new_itm); | 244 | return pv_time_ops.do_steal_accounting(new_itm); |
243 | } | 245 | } |
244 | 246 | ||
247 | static inline unsigned long long paravirt_sched_clock(void) | ||
248 | { | ||
249 | return pv_time_ops.sched_clock(); | ||
250 | } | ||
251 | |||
245 | #endif /* !__ASSEMBLY__ */ | 252 | #endif /* !__ASSEMBLY__ */ |
246 | 253 | ||
247 | #else | 254 | #else |