Module Name: src Committed By: cherry Date: Mon Aug 15 20:17:12 UTC 2011
Modified Files: src/sys/arch/xen/x86: xen_ipi.c Log Message: invert buggy ci_flag test To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/xen/x86/xen_ipi.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/x86/xen_ipi.c diff -u src/sys/arch/xen/x86/xen_ipi.c:1.3 src/sys/arch/xen/x86/xen_ipi.c:1.4 --- src/sys/arch/xen/x86/xen_ipi.c:1.3 Wed Aug 10 20:38:45 2011 +++ src/sys/arch/xen/x86/xen_ipi.c Mon Aug 15 20:17:12 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: xen_ipi.c,v 1.3 2011/08/10 20:38:45 cherry Exp $ */ +/* $NetBSD: xen_ipi.c,v 1.4 2011/08/15 20:17:12 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.3 2011/08/10 20:38:45 cherry Exp $"); + * __KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.4 2011/08/15 20:17:12 cherry Exp $"); */ -__KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.3 2011/08/10 20:38:45 cherry Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.4 2011/08/15 20:17:12 cherry Exp $"); #include <sys/types.h> @@ -158,7 +158,7 @@ KASSERT(ci != NULL || ci != curcpu()); - if ((ci->ci_flags & CPUF_RUNNING) != 0) { + if ((ci->ci_flags & CPUF_RUNNING) == 0) { return ENOENT; }