[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xen: arm: stub out wallclock time.
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1355926582 0 # Node ID f6984864e580c4c7daf5db5951b19767bc979fc5 # Parent 43193e52d15a66c0b6c246099302081b887134d6 xen: arm: stub out wallclock time. We don't currently have much concept of wallclock time on ARM (for either the hypervisor, dom0 or guests). For now just stub everything out. Specifically domain_set_time_offset, update_vcpu_system_time and wallclock_time. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Tim Deegan <tim@xxxxxxx> Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> ` Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r 43193e52d15a -r f6984864e580 xen/arch/arm/dummy.S --- a/xen/arch/arm/dummy.S Wed Dec 19 14:16:21 2012 +0000 +++ b/xen/arch/arm/dummy.S Wed Dec 19 14:16:22 2012 +0000 @@ -9,9 +9,6 @@ x: mov pc, lr /* PIRQ support */ DUMMY(nr_irqs_gsi); -/* VCPU */ -NOP(update_vcpu_system_time); - /* Grant Tables */ DUMMY(steal_page); @@ -21,8 +18,6 @@ DUMMY(page_is_ram_type); /* Other */ DUMMY(domain_get_maximum_gpfn); DUMMY(domain_relinquish_resources); -DUMMY(domain_set_time_offset); DUMMY(dom_cow); DUMMY(send_timer_event); DUMMY(share_xen_page_with_privileged_guests); -DUMMY(wallclock_time); diff -r 43193e52d15a -r f6984864e580 xen/arch/arm/time.c --- a/xen/arch/arm/time.c Wed Dec 19 14:16:21 2012 +0000 +++ b/xen/arch/arm/time.c Wed Dec 19 14:16:22 2012 +0000 @@ -25,6 +25,7 @@ #include <xen/mm.h> #include <xen/softirq.h> #include <xen/time.h> +#include <xen/sched.h> #include <asm/system.h> /* @@ -185,6 +186,23 @@ void udelay(unsigned long usecs) isb(); } +/* VCPU PV clock. */ +void update_vcpu_system_time(struct vcpu *v) +{ + /* XXX update shared_info->wc_* */ +} + +void domain_set_time_offset(struct domain *d, int32_t time_offset_seconds) +{ + d->time_offset_seconds = time_offset_seconds; + /* XXX update guest visible wallclock time */ +} + +struct tm wallclock_time(void) +{ + return (struct tm) { 0 }; +} + /* * Local variables: * mode: C _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |