Don't lock in the generic grab just to lock again in the specific grabs.
(I committed the wrong version of uart_core.c, which still had this). Pointy hat: imp
This commit is contained in:
parent
ba5bbb1d2a
commit
39f46280d5
@ -629,18 +629,14 @@ void
|
||||
uart_grab(struct uart_devinfo *di)
|
||||
{
|
||||
|
||||
uart_lock(di->hwmtx);
|
||||
if (di->sc)
|
||||
UART_GRAB(di->sc);
|
||||
uart_unlock(di->hwmtx);
|
||||
}
|
||||
|
||||
void
|
||||
uart_ungrab(struct uart_devinfo *di)
|
||||
{
|
||||
|
||||
uart_lock(di->hwmtx);
|
||||
if (di->sc)
|
||||
UART_UNGRAB(di->sc);
|
||||
uart_unlock(di->hwmtx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user