diff options
| author | 2016-01-19 17:57:07 +0000 | |
|---|---|---|
| committer | 2016-01-19 17:57:07 +0000 | |
| commit | 0441bdc91aec1e7c47f4310909602034cf78d06b (patch) | |
| tree | 205ab7bd5999c1a0443d040bde84b778eb58a3d7 | |
| parent | Remove unused global 'io_buffer'. (diff) | |
| download | wireguard-openbsd-0441bdc91aec1e7c47f4310909602034cf78d06b.tar.xz wireguard-openbsd-0441bdc91aec1e7c47f4310909602034cf78d06b.zip | |
Fix a race causing hardclock() to be sometimes invoked between the end
of cpu_configure() and initclocks().
from Miod
no objection deraadt@
| -rw-r--r-- | sys/arch/sparc/sparc/clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/sparc/clock.c b/sys/arch/sparc/sparc/clock.c index 7fa101c7b01..11fccb4e40e 100644 --- a/sys/arch/sparc/sparc/clock.c +++ b/sys/arch/sparc/sparc/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.33 2015/09/19 21:07:04 semarie Exp $ */ +/* $OpenBSD: clock.c,v 1.34 2016/01/19 17:57:07 ajacoutot Exp $ */ /* $NetBSD: clock.c,v 1.52 1997/05/24 20:16:05 pk Exp $ */ /* @@ -800,7 +800,7 @@ forward: * XXX Clock interrupts are enabled (and therefore serviceable) * XXX before initclocks() has completed. */ - if (cold == 0) + if (profhz != 0) hardclock((struct clockframe *)cap); return (1); |
