Skip to content

Commit

Permalink
x86: merge mmu{,_32,_64}.h
Browse files Browse the repository at this point in the history
Merge mmu_32.h and mmu_64.h into mmu.h.

Signed-off-by: Chris Snook <csnook@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Chris Snook authored and Thomas Gleixner committed Oct 23, 2007
1 parent 4d022ad commit 7035302
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 43 deletions.
26 changes: 22 additions & 4 deletions include/asm-x86/mmu.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
#ifdef CONFIG_X86_32
# include "mmu_32.h"
#else
# include "mmu_64.h"
#ifndef _ASM_X86_MMU_H
#define _ASM_X86_MMU_H

#include <linux/spinlock.h>
#include <linux/mutex.h>

/*
* The x86 doesn't have a mmu context, but
* we put the segment information here.
*
* cpu_vm_mask is used to optimize ldt flushing.
*/
typedef struct {
void *ldt;
#ifdef CONFIG_X86_64
rwlock_t ldtlock;
#endif
int size;
struct mutex lock;
void *vdso;
} mm_context_t;

#endif /* _ASM_X86_MMU_H */
18 changes: 0 additions & 18 deletions include/asm-x86/mmu_32.h

This file was deleted.

21 changes: 0 additions & 21 deletions include/asm-x86/mmu_64.h

This file was deleted.

0 comments on commit 7035302

Please sign in to comment.