unified spinlock initialization arch/um/drivers/port_kern.c
PATCH 1/1 unified spinlock initialization arch/um/drivers/port_kern.c
Unify the spinlock initialization as far as possible.
Do consider applying.
Signed-off-by Amit Gud <[email protected]>
Signed-off-by Domen Puncer <[email protected]>
---
kj-domen/arch/um/drivers/port_kern.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
arch/um/drivers/port_kern.c renamed from arch/um/drivers/port_kern.c~spin_lock_init-arch_um_drivers_port_kern +1 -1
@@ -185,11 +185,11 @@ void *port_data(int port_num) .has_connection = 0, .sem =__SEMAPHORE_INITIALIZER (port->sem, 0), - .lock = SPIN_LOCK_UNLOCKED, .port = port_num, .fd = fd, .pending = LIST_HEAD_INIT(port->pending), .connections = LIST_HEAD_INIT(port->connections) }); +spin_lock_init (&port->lock);list_add (&port->list, &ports); found:
_
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel