Module Name: src Committed By: roy Date: Sun Apr 26 20:41:30 UTC 2020
Modified Files: src/sys/arch/xen/xen: xen_clock.c Log Message: Guard xen_wallclock with XENPV. Thanks to riastradh@ To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/xen/xen/xen_clock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/xen/xen/xen_clock.c diff -u src/sys/arch/xen/xen/xen_clock.c:1.2 src/sys/arch/xen/xen/xen_clock.c:1.3 --- src/sys/arch/xen/xen/xen_clock.c:1.2 Sat Apr 25 15:26:18 2020 +++ src/sys/arch/xen/xen/xen_clock.c Sun Apr 26 20:41:30 2020 @@ -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 @@ xen_vcputime_raw_systime_ns(void) return raw_systime_ns; } +#ifdef XENPV /* * struct xen_wallclock_ticket * @@ -436,6 +437,7 @@ xen_wallclock_exit(struct xen_wallclock_ return tp->version == HYPERVISOR_shared_info->wc_version; } +#endif /* * xen_global_systime_ns()