X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-x86%2Fmmu.h;h=00e88679e11f780af5654ae54f2bfafc7e572369;hb=25a025863e024f6b86b48137b10b4960c50351b0;hp=3f922c8e1c881fcba9f779c75648d54225f15481;hpb=703530238b580d69d4a112d3ab3d58c0eb1e7246;p=linux-2.6 diff --git a/include/asm-x86/mmu.h b/include/asm-x86/mmu.h index 3f922c8e1c..00e88679e1 100644 --- a/include/asm-x86/mmu.h +++ b/include/asm-x86/mmu.h @@ -10,14 +10,22 @@ * * cpu_vm_mask is used to optimize ldt flushing. */ -typedef struct { +typedef struct { void *ldt; #ifdef CONFIG_X86_64 - rwlock_t ldtlock; + rwlock_t ldtlock; #endif int size; struct mutex lock; void *vdso; } mm_context_t; +#ifdef CONFIG_SMP +void leave_mm(int cpu); +#else +static inline void leave_mm(int cpu) +{ +} +#endif + #endif /* _ASM_X86_MMU_H */