From ff92ad95e28c0cc3080ab77e78169aa4ed1f1063 Mon Sep 17 00:00:00 2001 From: he Date: Tue, 10 Jul 2007 16:27:58 +0000 Subject: [PATCH] Protect the initialization of xen_timepush_co with #ifdef DOM0OPS, like its declaration and other uses. --- sys/arch/xen/xen/clock.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/xen/xen/clock.c b/sys/arch/xen/xen/clock.c index 5749cdc177a8..59cf58009e15 100644 --- a/sys/arch/xen/xen/clock.c +++ b/sys/arch/xen/xen/clock.c @@ -1,4 +1,4 @@ -/* $NetBSD: clock.c,v 1.38 2007/07/09 20:52:39 ad Exp $ */ +/* $NetBSD: clock.c,v 1.39 2007/07/10 16:27:58 he Exp $ */ /* * @@ -34,7 +34,7 @@ #include "opt_xen.h" #include -__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.38 2007/07/09 20:52:39 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.39 2007/07/10 16:27:58 he Exp $"); #include #include @@ -498,7 +498,9 @@ xen_initclocks() { int evtch; +#ifdef DOM0OPS callout_init(&xen_timepush_co, 0); +#endif evtch = bind_virq_to_evtch(VIRQ_TIMER); aprint_verbose("Xen clock: using event channel %d\n", evtch);