aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/time.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-08-22 09:53:15 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-08-22 09:53:15 +0100
commitc8cb30cfc87a568945ebaef079a7f06bda61eeb0 (patch)
treed554935a26305100a1dda14bcc789a1f24753963 /xen/arch/x86/time.c
parent96590ca76049f2679ba72e43bc0bde6e9e537978 (diff)
downloadxen-c8cb30cfc87a568945ebaef079a7f06bda61eeb0.tar.gz
xen-c8cb30cfc87a568945ebaef079a7f06bda61eeb0.tar.bz2
xen-c8cb30cfc87a568945ebaef079a7f06bda61eeb0.zip
mce: Provide ERST interface
This patch is used to provide ERST write/read/clear operation interface to Xen MCE. Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Diffstat (limited to 'xen/arch/x86/time.c')
-rw-r--r--xen/arch/x86/time.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c
index 3fdcca9b73..0564c398b7 100644
--- a/xen/arch/x86/time.c
+++ b/xen/arch/x86/time.c
@@ -1508,6 +1508,11 @@ unsigned long get_localtime(struct domain *d)
+ d->time_offset_seconds;
}
+unsigned long get_sec(void)
+{
+ return wc_sec + (wc_nsec + NOW()) / 1000000000ULL;
+}
+
/* "cmos_utc_offset" is the difference between UTC time and CMOS time. */
static long cmos_utc_offset; /* in seconds */