diff options
| author | Daniel Walker <[email protected]> | 2008-02-04 22:31:26 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-02-05 09:44:31 -0800 |
| commit | 01ac835fdd121f36dded404af15225101f6ccee3 (patch) | |
| tree | 7c147e37003fdad5525ce4b036917a29d9cdd1a2 /include | |
| parent | 2278c5ac9d39699bac44250b9c532de0c02cb16a (diff) | |
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 <[email protected]>
Signed-off-by: Jeff Dike <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-um/ldt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-um/ldt.h b/include/asm-um/ldt.h index b2553f3e87eb..52af512f5e7d 100644 --- a/include/asm-um/ldt.h +++ b/include/asm-um/ldt.h @@ -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]; |