mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Use Giant for kbdmux(4) locking. This is to workaround the problem
where interrupt handlers may race with kbdmux(4) in polling mode. PR: kern/127446 Reported by: Eygene Ryabinkin rea-fbsd at codelabs dot ru Tested by: Eygene Ryabinkin rea-fbsd at codelabs dot ru MFC after: 1 week
This commit is contained in:
parent
5b31ca99f7
commit
352d011bcc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183283
@ -104,10 +104,10 @@ MALLOC_DEFINE(M_KBDMUX, KEYBOARD_NAME, "Keyboard multiplexor");
|
||||
|
||||
#define KBDMUX_LOCK_DESTROY(s)
|
||||
|
||||
#define KBDMUX_LOCK(s)
|
||||
|
||||
#define KBDMUX_UNLOCK(s)
|
||||
|
||||
#define KBDMUX_LOCK(s) \
|
||||
mtx_lock(&Giant)
|
||||
#define KBDMUX_UNLOCK(s) \
|
||||
mtx_unlock(&Giant)
|
||||
#define KBDMUX_LOCK_ASSERT(s, w)
|
||||
|
||||
#define KBDMUX_SLEEP(s, f, d, t) \
|
||||
|
Loading…
Reference in New Issue
Block a user