diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-06-03 17:48:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-06-03 17:48:25 +0000 |
commit | 808f8a9fffb357eef8c99344ca9e32dadc538415 (patch) | |
tree | 6cd8dfd707710a2169e0d7731a8f49fbb3579c04 /sys/dev | |
parent | 783b895d2b628ad1aaabfd77974cf2bd29fc502c (diff) |
take care of some half-baked CPU temperature readings seen in wild
from Mikko Tolmunen
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isa/uguru.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/isa/uguru.c b/sys/dev/isa/uguru.c index cdb82a4240b..dafe8cab419 100644 --- a/sys/dev/isa/uguru.c +++ b/sys/dev/isa/uguru.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uguru.c,v 1.3 2010/04/20 06:44:49 deraadt Exp $ */ +/* $OpenBSD: uguru.c,v 1.4 2010/06/03 17:48:24 deraadt Exp $ */ /* * Copyright (c) 2010 Mikko Tolmunen <oskari@sefirosu.org> @@ -1024,6 +1024,10 @@ uguru_write_multi(bus_space_tag_t iot, bus_space_handle_t ioh, goto timeout; DELAY(5); } + /* dummy read to flush the internal buffer */ + if (i == 0) + UGURU_READ(iot, ioh, UGURU_DATA); + UGURU_WRITE(iot, ioh, UGURU_DATA, *inbuf++); } return 0; |