Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/xen Guard xen_wallclock with XENPV.



details:   https://anonhg.NetBSD.org/src/rev/1b5b4c7f0bd0
branches:  trunk
changeset: 971529:1b5b4c7f0bd0
user:      roy <roy%NetBSD.org@localhost>
date:      Sun Apr 26 20:41:30 2020 +0000

description:
Guard xen_wallclock with XENPV.

Thanks to riastradh@

diffstat:

 sys/arch/xen/xen/xen_clock.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 7db5a775d199 -r 1b5b4c7f0bd0 sys/arch/xen/xen/xen_clock.c
--- a/sys/arch/xen/xen/xen_clock.c      Sun Apr 26 20:13:43 2020 +0000
+++ b/sys/arch/xen/xen/xen_clock.c      Sun Apr 26 20:41:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xen_clock.c,v 1.2 2020/04/25 15:26:18 bouyer Exp $     */
+/*     $NetBSD: xen_clock.c,v 1.3 2020/04/26 20:41:30 roy Exp $        */
 
 /*-
  * Copyright (c) 2017, 2018 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_clock.c,v 1.2 2020/04/25 15:26:18 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_clock.c,v 1.3 2020/04/26 20:41:30 roy Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -382,6 +382,7 @@
        return raw_systime_ns;
 }
 
+#ifdef XENPV
 /*
  * struct xen_wallclock_ticket
  *
@@ -436,6 +437,7 @@
 
        return tp->version == HYPERVISOR_shared_info->wc_version;
 }
+#endif
 
 /*
  * xen_global_systime_ns()



Home | Main Index | Thread Index | Old Index