xen: move wallclock functions from x86 to common
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 12 Nov 2015 17:46:02 +0000 (17:46 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 25 Nov 2015 11:26:10 +0000 (11:26 +0000)
commitf1e5b11099c0d5cc51d26ba3f85d8fc3581d1cb3
treea330ba722d1d8674a7e0d0da234b93a7974e238b
parent7d596f5ad70969d8171e1eb5b7a39d0dc6c11dc2
xen: move wallclock functions from x86 to common

Remove dummy arm implementation of wallclock_time.
Use shared_info() in common code rather than x86-ism to access it, when
possible.

Define the static variable wc_sec, and the local variable sec in
update_domain_wallclock_time, as uint64_t instead of unsigned long, to
avoid size issue on arm.
Take a uint64_t sec parameter in do_settime for the same reason.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
CC: JBeulich@suse.com
CC: andrew.cooper3@citrix.com
[ ijc -- typoes in commit message ]
xen/arch/arm/time.c
xen/arch/x86/time.c
xen/common/time.c
xen/include/xen/time.h