FreeBSD Bugzilla – Attachment 217837 Details for
Bug 225341
System locks up due to atkbd_timeout kludge when using /dev/atkbd0 directly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
disable atkbd_timeout
disable-atkbd-timer.patch (text/plain), 1.36 KB, created by
Jan Kokemüller
on 2020-09-09 10:51:18 UTC
(
hide
)
Description:
disable atkbd_timeout
Filename:
MIME Type:
Creator:
Jan Kokemüller
Created:
2020-09-09 10:51:18 UTC
Size:
1.36 KB
patch
obsolete
>commit 02a6399063418c9e74803d401d226791fd517ac7 >Author: Jan Kokemüller <jan.kokemueller@gmail.com> >Date: Sun May 24 20:22:08 2015 +0200 > > disable atkbd timer > >diff --git a/sys/dev/atkbdc/atkbd.c b/sys/dev/atkbdc/atkbd.c >index ddf266abf531..3d2c8e406428 100644 >--- a/sys/dev/atkbdc/atkbd.c >+++ b/sys/dev/atkbdc/atkbd.c >@@ -110,7 +110,7 @@ int > atkbd_attach_unit(device_t dev, keyboard_t **kbd, int irq, int flags) > { > keyboard_switch_t *sw; >- atkbd_state_t *state; >+ // atkbd_state_t *state; > int args[2]; > int error; > int unit; >@@ -143,9 +143,9 @@ atkbd_attach_unit(device_t dev, keyboard_t **kbd, int irq, int flags) > * This is a kludge to compensate for lost keyboard interrupts. > * A similar code used to be in syscons. See below. XXX > */ >- state = (atkbd_state_t *)(*kbd)->kb_data; >- callout_init(&state->ks_timer, 0); >- atkbd_timeout(*kbd); >+ // state = (atkbd_state_t *)(*kbd)->kb_data; >+ // callout_init(&state->ks_timer, 0); >+ // atkbd_timeout(*kbd); > > if (bootverbose) > (*sw->diag)(*kbd, bootverbose); >@@ -519,10 +519,10 @@ atkbd_init(int unit, keyboard_t **kbdp, void *arg, int flags) > static int > atkbd_term(keyboard_t *kbd) > { >- atkbd_state_t *state = (atkbd_state_t *)kbd->kb_data; >+ // atkbd_state_t *state = (atkbd_state_t *)kbd->kb_data; > > kbd_unregister(kbd); >- callout_drain(&state->ks_timer); >+ // callout_drain(&state->ks_timer); > return 0; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 225341
: 217837