1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Undo SVN rev 183283

Do not use Giant for kbdmux(4) locking. This is wrong and apparently
causing more problems than it solves. This will re-open the issue
where interrupt handlers may race with kbdmux(4) in polling mode.
Typical symptoms include (but not limited to) duplicated and/or
missing characters when low level console functions (such as gets)
are used while interrupts are enabled (for example geli password
prompt, mountroot prompt etc.)

MFC after:	3 days
This commit is contained in:
Maksim Yevmenkin 2009-04-08 20:52:30 +00:00
parent 11c39fb4a3
commit ed382753a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190857

View File

@ -104,10 +104,10 @@ MALLOC_DEFINE(M_KBDMUX, KEYBOARD_NAME, "Keyboard multiplexor");
#define KBDMUX_LOCK_DESTROY(s)
#define KBDMUX_LOCK(s) \
mtx_lock(&Giant)
#define KBDMUX_UNLOCK(s) \
mtx_unlock(&Giant)
#define KBDMUX_LOCK(s)
#define KBDMUX_UNLOCK(s)
#define KBDMUX_LOCK_ASSERT(s, w)
#define KBDMUX_SLEEP(s, f, d, t) \