diff options
author | imp <imp@FreeBSD.org> | 2014-01-20 17:45:36 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-01-20 17:45:36 +0000 |
commit | 39f46280d5e81df8a08298cf71660aa89c5fdd37 (patch) | |
tree | dfc232b337c06a53d412558f41fa608568738dd7 | |
parent | ba5bbb1d2a800dc21d9e11672ce5b06a456ef61f (diff) | |
download | FreeBSD-src-39f46280d5e81df8a08298cf71660aa89c5fdd37.zip FreeBSD-src-39f46280d5e81df8a08298cf71660aa89c5fdd37.tar.gz |
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
-rw-r--r-- | sys/dev/uart/uart_core.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c index 08ac576..eea2d8c 100644 --- a/sys/dev/uart/uart_core.c +++ b/sys/dev/uart/uart_core.c @@ -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); } |