aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2003-12-02 06:18:37 +0000
committerBruce Evans <bde@FreeBSD.org>2003-12-02 06:18:37 +0000
commit2d0a65fb5823f4a5e277a0133f8f21bba2a67b48 (patch)
tree28fc16f99f25614d49e4c01ca1688a11dacf316d
parent4214fd368836e55665c39d44af029e016bed8403 (diff)
downloadsrc-2d0a65fb5823f4a5e277a0133f8f21bba2a67b48.tar.gz
src-2d0a65fb5823f4a5e277a0133f8f21bba2a67b48.zip
MFC (1.405: quick fix for most of the pessimization in rev.1.194).
Notes
Notes: svn path=/stable/3/; revision=123100
-rw-r--r--sys/i386/isa/sio.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/i386/isa/sio.c b/sys/i386/isa/sio.c
index 6727e2188827..71271b2d2623 100644
--- a/sys/i386/isa/sio.c
+++ b/sys/i386/isa/sio.c
@@ -1520,8 +1520,13 @@ siointr1(com)
struct timecounter *tc;
u_int count;
- int_ctl = inb(com->intr_ctl_port);
- int_ctl_new = int_ctl;
+ if (COM_IIR_TXRDYBUG(com)) {
+ int_ctl = inb(com->intr_ctl_port);
+ int_ctl_new = int_ctl;
+ } else {
+ int_ctl = 0;
+ int_ctl_new = 0;
+ }
while (!com->gone) {
if (com->pps.ppsparam.mode & PPS_CAPTUREBOTH) {