X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=arch%2Fx86%2Fxen%2Ftime.c;h=0a5aa44299a51fac214833fe00c68d947ee92367;hb=4aac047323e3082d0866b8ad3784236632105af4;hp=732e52dc991ab0e03c525724a58359f4d758c3b6;hpb=79741dd35713ff4f6fd0eafd59fa94e8a4ba922d;p=safe%2Fjmp%2Flinux-2.6 diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index 732e52d..0a5aa44 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c @@ -213,6 +213,11 @@ cycle_t xen_clocksource_read(void) return ret; } +static cycle_t xen_clocksource_get_cycles(struct clocksource *cs) +{ + return xen_clocksource_read(); +} + static void xen_read_wallclock(struct timespec *ts) { struct shared_info *s = HYPERVISOR_shared_info; @@ -241,7 +246,7 @@ int xen_set_wallclock(unsigned long now) static struct clocksource xen_clocksource __read_mostly = { .name = "xen", .rating = 400, - .read = xen_clocksource_read, + .read = xen_clocksource_get_cycles, .mask = ~0, .mult = 1<cpumask = cpumask_of_cpu(cpu); + evt->cpumask = cpumask_of(cpu); evt->irq = irq; setup_runstate_info(cpu);