From 138277120cbc4a2852b3b6d0ca20d0357599ffce Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 20 Jan 2014 17:45:36 +0000 Subject: [PATCH] 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 --- sys/dev/uart/uart_core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c index 08ac57657c2c..eea2d8ce80a1 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); }