aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/include/asm/paravirt.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/include/asm/paravirt.h')
-rw-r--r--arch/ia64/include/asm/paravirt.h7
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
230extern struct pv_time_ops pv_time_ops; 232extern 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
247static 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