aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2010-07-12 20:45:37 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2010-07-12 20:45:37 +0000
commit05f81eb67de2bb2de5ee5c8e86aa8289d356b0ba (patch)
tree89a5bcda761417c85dcb1ee0cbde5c0622b98857
parentaaa95ccb5067bca6dee8c7f66933b56072b58132 (diff)
downloadsrc-05f81eb67de2bb2de5ee5c8e86aa8289d356b0ba.tar.gz
src-05f81eb67de2bb2de5ee5c8e86aa8289d356b0ba.zip
Remove a dead test. We already exclude NMI traps from this code in an
earlier condition. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=209956
-rw-r--r--sys/amd64/amd64/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index b91698f6f422..36425547ff74 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -268,9 +268,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();
}
}