mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-08 23:49:14 +08: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:
committed by
Linus Torvalds
parent
2278c5ac9d
commit
01ac835fdd
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user