aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/time.c
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2009-03-04 07:05:40 -0500
committerTony Luck <tony.luck@intel.com>2009-03-26 13:50:42 -0400
commitf927da178671a824cf6c530f0623544206387e57 (patch)
treefb9178ff79bfd9ee3b396ff20018eacbfb222d47 /arch/ia64/kernel/time.c
parent496203b15b7249599712525c2b6aafe231b4628d (diff)
ia64/pv_ops/pv_time_ops: add sched_clock hook.
add sched_clock() hook to paravirtualize sched_clock(). ia64 sched_clock() is based on ar.itc which isn't stable on virtualized environment because vcpu may move around on pcpus. So it needs paravirtualization. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/time.c')
-rw-r--r--arch/ia64/kernel/time.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c
index f0ebb342409d..c323c7b9c775 100644
--- a/arch/ia64/kernel/time.c
+++ b/arch/ia64/kernel/time.c
@@ -50,6 +50,15 @@ EXPORT_SYMBOL(last_cli_ip);
50#endif 50#endif
51 51
52#ifdef CONFIG_PARAVIRT 52#ifdef CONFIG_PARAVIRT
53/* We need to define a real function for sched_clock, to override the
54 weak default version */
55unsigned long long sched_clock(void)
56{
57 return paravirt_sched_clock();
58}
59#endif
60
61#ifdef CONFIG_PARAVIRT
53static void 62static void
54paravirt_clocksource_resume(void) 63paravirt_clocksource_resume(void)
55{ 64{