diff options
author | Bryan Steele <brynet@cvs.openbsd.org> | 2019-09-27 01:26:47 +0000 |
---|---|---|
committer | Bryan Steele <brynet@cvs.openbsd.org> | 2019-09-27 01:26:47 +0000 |
commit | 2f329f867c88e49b8de1da837feafde9f6249983 (patch) | |
tree | 4ee79984728c72ef6d516630971747df3c4fa13a /sys | |
parent | 7c39d33a4b6d68ab8a7a452cc034aed7a5144558 (diff) |
Use a better scale value in ksmn(4), this produces a slightly more
stable result when idle and under some load.
Tested by abieber@ on a R7 PRO 2700U, also by me on a R5 2500U MateBook D,
and a R7 2700X desktop.
Discussed with @nte@bsd.network.
OK abieber@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/ksmn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/ksmn.c b/sys/dev/pci/ksmn.c index cd43125fb31..7d3477d4b32 100644 --- a/sys/dev/pci/ksmn.c +++ b/sys/dev/pci/ksmn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ksmn.c,v 1.1 2019/09/26 12:59:01 brynet Exp $ */ +/* $OpenBSD: ksmn.c,v 1.2 2019/09/27 01:26:46 brynet Exp $ */ /* * Copyright (c) 2019 Bryan Steele <brynet@openbsd.org> @@ -162,5 +162,5 @@ ksmn_refresh(void *arg) c -= CURTMP_17H_RANGE_ADJUST; if (c > sc->sc_tctl_offset) c -= sc->sc_tctl_offset; - s->value = c * 125000 + 273150000; + s->value = c * 100000 + 273150000; } |