Skip to contentSkip to conversation

netdev: ehea: port_lock semaphore to mutex

PATCH Applied [email protected] 1 participant 1 message Mar 28, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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]
Cc Jeff Garzik <[email protected]>
Cc Christoph Raisch <[email protected]>
Cc Jan-Bernd Themann <[email protected]>
Cc Thomas Klein <[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
diff -puN drivers/net/ehea/ehea.h~net-ehea-port_lock-semaphore-to-mutex drivers/net/ehea/ehea.h
@@ -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

_