You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
use mutex instead of semaphore in isdn subsystem common functions
The ISDN subsystem common functions use a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com> Acked-by: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
4d1ff58224
commit
4e3dfacaa0
@@ -167,6 +167,7 @@ typedef struct {
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/tcp.h>
|
||||
#include <linux/mutex.h>
|
||||
|
||||
#define ISDN_TTY_MAJOR 43
|
||||
#define ISDN_TTYAUX_MAJOR 44
|
||||
@@ -616,7 +617,7 @@ typedef struct isdn_devt {
|
||||
int v110emu[ISDN_MAX_CHANNELS]; /* V.110 emulator-mode 0=none */
|
||||
atomic_t v110use[ISDN_MAX_CHANNELS]; /* Usage-Semaphore for stream */
|
||||
isdn_v110_stream *v110[ISDN_MAX_CHANNELS]; /* V.110 private data */
|
||||
struct semaphore sem; /* serialize list access*/
|
||||
struct mutex mtx; /* serialize list access*/
|
||||
unsigned long global_features;
|
||||
} isdn_dev;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user