mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] pcmcia: use mutexes instead of semaphores
Use mutexes in the PCMICA core, as they suffice for what needs to be done. Includes a bugfix from and Signed-off-by Andrew Morton. Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
cbbddd1046
commit
7fe908dd11
6 changed files with 60 additions and 58 deletions
|
|
@ -18,6 +18,7 @@
|
|||
#include <linux/config.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/sched.h> /* task_struct, completion */
|
||||
#include <linux/mutex.h>
|
||||
|
||||
#include <pcmcia/cs_types.h>
|
||||
#include <pcmcia/cs.h>
|
||||
|
|
@ -240,7 +241,7 @@ struct pcmcia_socket {
|
|||
#endif
|
||||
|
||||
/* state thread */
|
||||
struct semaphore skt_sem; /* protects socket h/w state */
|
||||
struct mutex skt_mutex; /* protects socket h/w state */
|
||||
|
||||
struct task_struct *thread;
|
||||
struct completion thread_done;
|
||||
|
|
|
|||
Loading…
Reference in a new issue