H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_MMU_H |
| 2 | #define _ASM_X86_MMU_H |
Chris Snook | 7035302 | 2007-10-20 02:56:59 -0400 | [diff] [blame] | 3 | |
| 4 | #include <linux/spinlock.h> |
| 5 | #include <linux/mutex.h> |
| 6 | |
| 7 | /* |
| 8 | * The x86 doesn't have a mmu context, but |
| 9 | * we put the segment information here. |
Chris Snook | 7035302 | 2007-10-20 02:56:59 -0400 | [diff] [blame] | 10 | */ |
Joe Perches | 710d0e9 | 2008-03-23 01:02:44 -0700 | [diff] [blame] | 11 | typedef struct { |
Chris Snook | 7035302 | 2007-10-20 02:56:59 -0400 | [diff] [blame] | 12 | void *ldt; |
Chris Snook | 7035302 | 2007-10-20 02:56:59 -0400 | [diff] [blame] | 13 | int size; |
| 14 | struct mutex lock; |
| 15 | void *vdso; |
| 16 | } mm_context_t; |
| 17 | |
Venki Pallipadi | bde6f5f | 2008-01-30 13:32:01 +0100 | [diff] [blame] | 18 | #ifdef CONFIG_SMP |
| 19 | void leave_mm(int cpu); |
| 20 | #else |
| 21 | static inline void leave_mm(int cpu) |
| 22 | { |
| 23 | } |
| 24 | #endif |
| 25 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 26 | #endif /* _ASM_X86_MMU_H */ |