* [patch 05/30] net: 3c527: semaphore cleanup
[not found] <20100907124636.880953480@linutronix.de>
@ 2010-09-07 14:32 ` Thomas Gleixner
2010-09-07 16:28 ` David Miller
2010-09-07 14:32 ` [patch 06/30] hamradio: 6pack: " Thomas Gleixner
` (4 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: Thomas Gleixner @ 2010-09-07 14:32 UTC (permalink / raw)
To: LKML
Cc: Andrew Morton, Ingo Molnar, Peter Zijlstra, Christoph Hellwig,
David Miller, netdev
[-- Attachment #1: drivers-net-3c527-sema.patch --]
[-- Type: text/plain, Size: 787 bytes --]
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
---
drivers/net/3c527.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/drivers/net/3c527.c
===================================================================
--- linux-2.6.orig/drivers/net/3c527.c
+++ linux-2.6/drivers/net/3c527.c
@@ -522,7 +522,7 @@ static int __init mc32_probe1(struct net
lp->tx_len = lp->exec_box->data[9]; /* Transmit list count */
lp->rx_len = lp->exec_box->data[11]; /* Receive list count */
- init_MUTEX_LOCKED(&lp->cmd_mutex);
+ sema_init(&lp->cmd_mutex, 0);
init_completion(&lp->execution_cmd);
init_completion(&lp->xceiver_cmd);
^ permalink raw reply [flat|nested] 12+ messages in thread
* [patch 06/30] hamradio: 6pack: semaphore cleanup
[not found] <20100907124636.880953480@linutronix.de>
2010-09-07 14:32 ` [patch 05/30] net: 3c527: semaphore cleanup Thomas Gleixner
@ 2010-09-07 14:32 ` Thomas Gleixner
2010-09-07 16:28 ` David Miller
2010-09-07 14:32 ` [patch 07/30] hamradio: mkiss: " Thomas Gleixner
` (3 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: Thomas Gleixner @ 2010-09-07 14:32 UTC (permalink / raw)
To: LKML
Cc: Andrew Morton, Ingo Molnar, Peter Zijlstra, Christoph Hellwig,
David Miller, netdev
[-- Attachment #1: drivers-net-hamradio-6pack-sema.patch --]
[-- Type: text/plain, Size: 737 bytes --]
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
---
drivers/net/hamradio/6pack.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/drivers/net/hamradio/6pack.c
===================================================================
--- linux-2.6.orig/drivers/net/hamradio/6pack.c
+++ linux-2.6/drivers/net/hamradio/6pack.c
@@ -608,7 +608,7 @@ static int sixpack_open(struct tty_struc
spin_lock_init(&sp->lock);
atomic_set(&sp->refcnt, 1);
- init_MUTEX_LOCKED(&sp->dead_sem);
+ sema_init(&sp->dead_sem, 0);
/* !!! length of the buffers. MTU is IP MTU, not PACLEN! */
^ permalink raw reply [flat|nested] 12+ messages in thread
* [patch 07/30] hamradio: mkiss: semaphore cleanup
[not found] <20100907124636.880953480@linutronix.de>
2010-09-07 14:32 ` [patch 05/30] net: 3c527: semaphore cleanup Thomas Gleixner
2010-09-07 14:32 ` [patch 06/30] hamradio: 6pack: " Thomas Gleixner
@ 2010-09-07 14:32 ` Thomas Gleixner
2010-09-07 16:28 ` David Miller
2010-09-07 14:32 ` [patch 08/30] net: ppp_async: " Thomas Gleixner
` (2 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: Thomas Gleixner @ 2010-09-07 14:32 UTC (permalink / raw)
To: LKML
Cc: Andrew Morton, Ingo Molnar, Peter Zijlstra, Christoph Hellwig,
David Miller, netdev
[-- Attachment #1: drivers-net-hamradio-mkiss-sema.patch --]
[-- Type: text/plain, Size: 715 bytes --]
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
---
drivers/net/hamradio/mkiss.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/drivers/net/hamradio/mkiss.c
===================================================================
--- linux-2.6.orig/drivers/net/hamradio/mkiss.c
+++ linux-2.6/drivers/net/hamradio/mkiss.c
@@ -747,7 +747,7 @@ static int mkiss_open(struct tty_struct
spin_lock_init(&ax->buflock);
atomic_set(&ax->refcnt, 1);
- init_MUTEX_LOCKED(&ax->dead_sem);
+ sema_init(&ax->dead_sem, 0);
ax->tty = tty;
tty->disc_data = ax;
^ permalink raw reply [flat|nested] 12+ messages in thread
* [patch 08/30] net: ppp_async: semaphore cleanup
[not found] <20100907124636.880953480@linutronix.de>
` (2 preceding siblings ...)
2010-09-07 14:32 ` [patch 07/30] hamradio: mkiss: " Thomas Gleixner
@ 2010-09-07 14:32 ` Thomas Gleixner
2010-09-07 16:28 ` David Miller
2010-09-07 14:32 ` [patch 09/30] net: wan/cosa.c: Convert "mutex" to semaphore Thomas Gleixner
2010-09-07 14:32 ` [patch 10/30] irda: semaphore cleanup Thomas Gleixner
5 siblings, 1 reply; 12+ messages in thread
From: Thomas Gleixner @ 2010-09-07 14:32 UTC (permalink / raw)
To: LKML
Cc: Andrew Morton, Ingo Molnar, Peter Zijlstra, Christoph Hellwig,
David Miller, netdev
[-- Attachment #1: drivers-net-ppp-async-sema.patch --]
[-- Type: text/plain, Size: 742 bytes --]
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
---
drivers/net/ppp_async.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/drivers/net/ppp_async.c
===================================================================
--- linux-2.6.orig/drivers/net/ppp_async.c
+++ linux-2.6/drivers/net/ppp_async.c
@@ -184,7 +184,7 @@ ppp_asynctty_open(struct tty_struct *tty
tasklet_init(&ap->tsk, ppp_async_process, (unsigned long) ap);
atomic_set(&ap->refcnt, 1);
- init_MUTEX_LOCKED(&ap->dead_sem);
+ sema_init(&ap->dead_sem, 0);
ap->chan.private = ap;
ap->chan.ops = &async_ops;
^ permalink raw reply [flat|nested] 12+ messages in thread
* [patch 09/30] net: wan/cosa.c: Convert "mutex" to semaphore
[not found] <20100907124636.880953480@linutronix.de>
` (3 preceding siblings ...)
2010-09-07 14:32 ` [patch 08/30] net: ppp_async: " Thomas Gleixner
@ 2010-09-07 14:32 ` Thomas Gleixner
2010-09-07 16:29 ` David Miller
2010-09-07 14:32 ` [patch 10/30] irda: semaphore cleanup Thomas Gleixner
5 siblings, 1 reply; 12+ messages in thread
From: Thomas Gleixner @ 2010-09-07 14:32 UTC (permalink / raw)
To: LKML
Cc: Andrew Morton, Ingo Molnar, Peter Zijlstra, Christoph Hellwig,
David S. Miller, netdev
[-- Attachment #1: drivers-net-wan-cosa-sema.patch --]
[-- Type: text/plain, Size: 746 bytes --]
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David S. Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
---
drivers/net/wan/cosa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/drivers/net/wan/cosa.c
===================================================================
--- linux-2.6.orig/drivers/net/wan/cosa.c
+++ linux-2.6/drivers/net/wan/cosa.c
@@ -575,7 +575,7 @@ static int cosa_probe(int base, int irq,
/* Initialize the chardev data structures */
mutex_init(&chan->rlock);
- init_MUTEX(&chan->wsem);
+ sema_init(&chan->wsem, 1);
/* Register the network interface */
if (!(chan->netdev = alloc_hdlcdev(chan))) {
^ permalink raw reply [flat|nested] 12+ messages in thread
* [patch 10/30] irda: semaphore cleanup
[not found] <20100907124636.880953480@linutronix.de>
` (4 preceding siblings ...)
2010-09-07 14:32 ` [patch 09/30] net: wan/cosa.c: Convert "mutex" to semaphore Thomas Gleixner
@ 2010-09-07 14:32 ` Thomas Gleixner
2010-09-07 16:29 ` David Miller
5 siblings, 1 reply; 12+ messages in thread
From: Thomas Gleixner @ 2010-09-07 14:32 UTC (permalink / raw)
To: LKML
Cc: Andrew Morton, Ingo Molnar, Peter Zijlstra, Christoph Hellwig,
David S. Miller, netdev
[-- Attachment #1: drivers-net-irda-sir-dev-sema.patch --]
[-- Type: text/plain, Size: 696 bytes --]
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David S. Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
---
drivers/net/irda/sir_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/drivers/net/irda/sir_dev.c
===================================================================
--- linux-2.6.orig/drivers/net/irda/sir_dev.c
+++ linux-2.6/drivers/net/irda/sir_dev.c
@@ -909,7 +909,7 @@ struct sir_dev * sirdev_get_instance(con
dev->tx_skb = NULL;
spin_lock_init(&dev->tx_lock);
- init_MUTEX(&dev->fsm.sem);
+ sema_init(&dev->fsm.sem, 1);
dev->drv = drv;
dev->netdev = ndev;
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [patch 05/30] net: 3c527: semaphore cleanup
2010-09-07 14:32 ` [patch 05/30] net: 3c527: semaphore cleanup Thomas Gleixner
@ 2010-09-07 16:28 ` David Miller
0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2010-09-07 16:28 UTC (permalink / raw)
To: tglx; +Cc: linux-kernel, akpm, mingo, peterz, hch, netdev
From: Thomas Gleixner <tglx@linutronix.de>
Date: Tue, 07 Sep 2010 14:32:10 -0000
> Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [patch 06/30] hamradio: 6pack: semaphore cleanup
2010-09-07 14:32 ` [patch 06/30] hamradio: 6pack: " Thomas Gleixner
@ 2010-09-07 16:28 ` David Miller
0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2010-09-07 16:28 UTC (permalink / raw)
To: tglx; +Cc: linux-kernel, akpm, mingo, peterz, hch, netdev
From: Thomas Gleixner <tglx@linutronix.de>
Date: Tue, 07 Sep 2010 14:32:14 -0000
> Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [patch 07/30] hamradio: mkiss: semaphore cleanup
2010-09-07 14:32 ` [patch 07/30] hamradio: mkiss: " Thomas Gleixner
@ 2010-09-07 16:28 ` David Miller
0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2010-09-07 16:28 UTC (permalink / raw)
To: tglx; +Cc: linux-kernel, akpm, mingo, peterz, hch, netdev
From: Thomas Gleixner <tglx@linutronix.de>
Date: Tue, 07 Sep 2010 14:32:18 -0000
> Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [patch 08/30] net: ppp_async: semaphore cleanup
2010-09-07 14:32 ` [patch 08/30] net: ppp_async: " Thomas Gleixner
@ 2010-09-07 16:28 ` David Miller
0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2010-09-07 16:28 UTC (permalink / raw)
To: tglx; +Cc: linux-kernel, akpm, mingo, peterz, hch, netdev
From: Thomas Gleixner <tglx@linutronix.de>
Date: Tue, 07 Sep 2010 14:32:22 -0000
> Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [patch 09/30] net: wan/cosa.c: Convert "mutex" to semaphore
2010-09-07 14:32 ` [patch 09/30] net: wan/cosa.c: Convert "mutex" to semaphore Thomas Gleixner
@ 2010-09-07 16:29 ` David Miller
0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2010-09-07 16:29 UTC (permalink / raw)
To: tglx; +Cc: linux-kernel, akpm, mingo, peterz, hch, netdev
From: Thomas Gleixner <tglx@linutronix.de>
Date: Tue, 07 Sep 2010 14:32:25 -0000
> Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [patch 10/30] irda: semaphore cleanup
2010-09-07 14:32 ` [patch 10/30] irda: semaphore cleanup Thomas Gleixner
@ 2010-09-07 16:29 ` David Miller
0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2010-09-07 16:29 UTC (permalink / raw)
To: tglx; +Cc: linux-kernel, akpm, mingo, peterz, hch, netdev
From: Thomas Gleixner <tglx@linutronix.de>
Date: Tue, 07 Sep 2010 14:32:30 -0000
> Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-09-07 16:29 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20100907124636.880953480@linutronix.de>
2010-09-07 14:32 ` [patch 05/30] net: 3c527: semaphore cleanup Thomas Gleixner
2010-09-07 16:28 ` David Miller
2010-09-07 14:32 ` [patch 06/30] hamradio: 6pack: " Thomas Gleixner
2010-09-07 16:28 ` David Miller
2010-09-07 14:32 ` [patch 07/30] hamradio: mkiss: " Thomas Gleixner
2010-09-07 16:28 ` David Miller
2010-09-07 14:32 ` [patch 08/30] net: ppp_async: " Thomas Gleixner
2010-09-07 16:28 ` David Miller
2010-09-07 14:32 ` [patch 09/30] net: wan/cosa.c: Convert "mutex" to semaphore Thomas Gleixner
2010-09-07 16:29 ` David Miller
2010-09-07 14:32 ` [patch 10/30] irda: semaphore cleanup Thomas Gleixner
2010-09-07 16:29 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).