Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jul 2010 15:32:23 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r210420 - stable/8/sys/amd64/amd64
Message-ID:  <201007231532.o6NFWN9G032654@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Fri Jul 23 15:32:22 2010
New Revision: 210420
URL: http://svn.freebsd.org/changeset/base/210420

Log:
  MFC 209956:
  Remove a dead test.  We already exclude NMI traps from this code in an
  earlier condition.

Modified:
  stable/8/sys/amd64/amd64/trap.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/amd64/amd64/trap.c
==============================================================================
--- stable/8/sys/amd64/amd64/trap.c	Fri Jul 23 15:26:32 2010	(r210419)
+++ stable/8/sys/amd64/amd64/trap.c	Fri Jul 23 15:32:22 2010	(r210420)
@@ -271,9 +271,9 @@ trap(struct trapframe *frame)
 
 			/*
 			 * We shouldn't enable interrupts while holding a
-			 * spin lock or servicing an NMI.
+			 * spin lock.
 			 */
-			if (type != T_NMI && td->td_md.md_spinlock_count == 0)
+			if (td->td_md.md_spinlock_count == 0)
 				enable_intr();
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007231532.o6NFWN9G032654>