mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 04:59:05 -04:00
uml: LDT mutex conversion
The ldt.semaphore conforms to the new struct mutex requirments, so I converted it to use the new API and changed the name. Signed-off-by: Daniel Walker <dwalker@mvista.com> Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
2278c5ac9d
commit
01ac835fdd
2 changed files with 9 additions and 9 deletions
|
|
@ -8,7 +8,7 @@
|
|||
#ifndef __ASM_LDT_H
|
||||
#define __ASM_LDT_H
|
||||
|
||||
#include "asm/semaphore.h"
|
||||
#include <linux/mutex.h>
|
||||
#include "asm/host_ldt.h"
|
||||
|
||||
extern void ldt_host_info(void);
|
||||
|
|
@ -27,7 +27,7 @@ struct ldt_entry {
|
|||
|
||||
typedef struct uml_ldt {
|
||||
int entry_count;
|
||||
struct semaphore semaphore;
|
||||
struct mutex lock;
|
||||
union {
|
||||
struct ldt_entry * pages[LDT_PAGES_MAX];
|
||||
struct ldt_entry entries[LDT_DIRECT_ENTRIES];
|
||||
|
|
|
|||
Loading…
Reference in a new issue