From 6cc7a9d8d34d237048b8036f3efa1e01d0ab52a0 Mon Sep 17 00:00:00 2001 From: cherry Date: Wed, 28 Dec 2011 18:59:21 +0000 Subject: [PATCH] Remove temporary variable definition that is unused in non DIAGNOSTIC builds. --- sys/arch/xen/x86/xen_ipi.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sys/arch/xen/x86/xen_ipi.c b/sys/arch/xen/x86/xen_ipi.c index a9d37a1ef44f..4752d3eb00e7 100644 --- a/sys/arch/xen/x86/xen_ipi.c +++ b/sys/arch/xen/x86/xen_ipi.c @@ -1,4 +1,4 @@ -/* $NetBSD: xen_ipi.c,v 1.7 2011/12/07 15:47:43 cegger Exp $ */ +/* $NetBSD: xen_ipi.c,v 1.8 2011/12/28 18:59:21 cherry Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -33,10 +33,10 @@ /* * Based on: x86/ipi.c - * __KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.7 2011/12/07 15:47:43 cegger Exp $"); + * __KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.8 2011/12/28 18:59:21 cherry Exp $"); */ -__KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.7 2011/12/07 15:47:43 cegger Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.8 2011/12/28 18:59:21 cherry Exp $"); #include @@ -304,10 +304,8 @@ xen_ipi_hvcb(struct cpu_info *ci, struct intrframe *intrf) { KASSERT(ci != NULL); KASSERT(intrf != NULL); - - volatile struct vcpu_info *vci = ci->ci_vcpu; - KASSERT(ci == curcpu()); - KASSERT(!vci->evtchn_upcall_mask); + KASSERT(!ci->ci_vcpu->evtchn_upcall_mask); + hypervisor_force_callback(); }