netdev: ehea: port_lock semaphore to mutex
Subsystems (2)
PATCH 18/21 netdev: ehea: port_lock semaphore to mutex
From: Daniel Walker <[email protected]>
Convert the port_lock to a mutex. There is also some additional cleanup. The line length inside the ehea_rereg_mrs was getting long so I made some adjustments to shorten them.
[[email protected]: dec99ification]
Signed-off-by Daniel Walker <[email protected]>
Cc Jeff Garzik <[email protected]>
Cc Christoph Raisch <[email protected]>
Cc Jan-Bernd Themann <[email protected]>
Cc Thomas Klein <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/net/ehea/ehea.h | 2 - drivers/net/ehea/ehea_main.c | 44 +++++++++++++++++---------------- 2 files changed, 24 insertions(+), 22 deletions(-)
drivers/net/ehea/ehea.h renamed from drivers/net/ehea/ehea.h~net-ehea-port_lock-semaphore-to-mutex +1 -1
@@ -452,7 +452,7 @@ struct ehea_port {struct vlan_group *vgrp;struct ehea_eq *qp_eq;struct work_struct reset_task; -struct semaphore port_lock; +struct mutex port_lock;char int_aff_name[EHEA_IRQ_NAME_SIZE ];int allmulti;/* Indicates IFF_ALLMULTI state */ int promisc;/* Indicates IFF_PROMISC state */
drivers/net/ehea/ehea_main.c renamed from drivers/net/ehea/ehea_main.c~net-ehea-port_lock-semaphore-to-mutex +23 -21
102 lines not on this page · raw message
_