From 6bf2dcfc5061815e8fd8438c45d01953ce3334ef Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Sat, 21 Feb 1998 20:45:27 +0000 Subject: [PATCH] Add missing CLOCK_UNLOCK() before write_eflags(). Submitted by: dave adkins --- sys/amd64/amd64/tsc.c | 3 ++- sys/amd64/isa/clock.c | 3 ++- sys/i386/i386/tsc.c | 3 ++- sys/i386/isa/clock.c | 3 ++- sys/isa/atrtc.c | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c index 948dfa272c5..9941f73766b 100644 --- a/sys/amd64/amd64/tsc.c +++ b/sys/amd64/amd64/tsc.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.110 1998/02/13 06:33:16 bde Exp $ + * $Id: clock.c,v 1.111 1998/02/20 16:35:37 phk Exp $ */ /* @@ -1070,6 +1070,7 @@ i8254_get_timecount(void) i8254_lastcount = count; count += i8254_offset; + CLOCK_UNLOCK(); write_eflags(ef); return (count); } diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c index 948dfa272c5..9941f73766b 100644 --- a/sys/amd64/isa/clock.c +++ b/sys/amd64/isa/clock.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.110 1998/02/13 06:33:16 bde Exp $ + * $Id: clock.c,v 1.111 1998/02/20 16:35:37 phk Exp $ */ /* @@ -1070,6 +1070,7 @@ i8254_get_timecount(void) i8254_lastcount = count; count += i8254_offset; + CLOCK_UNLOCK(); write_eflags(ef); return (count); } diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c index 948dfa272c5..9941f73766b 100644 --- a/sys/i386/i386/tsc.c +++ b/sys/i386/i386/tsc.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.110 1998/02/13 06:33:16 bde Exp $ + * $Id: clock.c,v 1.111 1998/02/20 16:35:37 phk Exp $ */ /* @@ -1070,6 +1070,7 @@ i8254_get_timecount(void) i8254_lastcount = count; count += i8254_offset; + CLOCK_UNLOCK(); write_eflags(ef); return (count); } diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index 948dfa272c5..9941f73766b 100644 --- a/sys/i386/isa/clock.c +++ b/sys/i386/isa/clock.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.110 1998/02/13 06:33:16 bde Exp $ + * $Id: clock.c,v 1.111 1998/02/20 16:35:37 phk Exp $ */ /* @@ -1070,6 +1070,7 @@ i8254_get_timecount(void) i8254_lastcount = count; count += i8254_offset; + CLOCK_UNLOCK(); write_eflags(ef); return (count); } diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c index 948dfa272c5..9941f73766b 100644 --- a/sys/isa/atrtc.c +++ b/sys/isa/atrtc.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.110 1998/02/13 06:33:16 bde Exp $ + * $Id: clock.c,v 1.111 1998/02/20 16:35:37 phk Exp $ */ /* @@ -1070,6 +1070,7 @@ i8254_get_timecount(void) i8254_lastcount = count; count += i8254_offset; + CLOCK_UNLOCK(); write_eflags(ef); return (count); }