diff options
author | Alexander Motin <mav@FreeBSD.org> | 2022-01-05 20:00:36 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2022-01-05 20:12:58 +0000 |
commit | ce881170088c4c98c036fe561f8ee8413c2e2585 (patch) | |
tree | c87d97c13cc0b99b7a82278ab9bcf065e250d6b8 /sys/dev/atkbdc/atkbd.c | |
parent | f3c2987f2f5c91f0801fa8bbf9e1bc09d91aeb46 (diff) | |
download | src-ce881170088c4c98c036fe561f8ee8413c2e2585.tar.gz src-ce881170088c4c98c036fe561f8ee8413c2e2585.zip |
atkbd: Disable periodic polling by default.
It is one of the few remaining Giant-locked callouts. It would be
good to remove it, not mentioning that polling itself is not good.
If this cause keyboard/mouse freezes on some hardware, please set
loader tunable hw.atkbd.hz=1 as workaround and report the issue.
Submitted by: imp, jhb
Diffstat (limited to 'sys/dev/atkbdc/atkbd.c')
-rw-r--r-- | sys/dev/atkbdc/atkbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/atkbdc/atkbd.c b/sys/dev/atkbdc/atkbd.c index cee1207df973..e87e5591150c 100644 --- a/sys/dev/atkbdc/atkbd.c +++ b/sys/dev/atkbdc/atkbd.c @@ -77,7 +77,7 @@ typedef struct atkbd_state { static SYSCTL_NODE(_hw, OID_AUTO, atkbd, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, "AT keyboard"); -static int atkbdhz = 1; +static int atkbdhz = 0; SYSCTL_INT(_hw_atkbd, OID_AUTO, hz, CTLFLAG_RWTUN, &atkbdhz, 0, "Polling frequency (in hz)"); |