aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2007-05-02 13:27:15 -0400
committerAndi Kleen <andi@basil.nowhere.org>2007-05-02 13:27:15 -0400
commit4e0fa85602a4fa219fc3a9c053d5140bf987d3e3 (patch)
tree834d782a6782ac9c038ef64dac5ab015f6bfbf2d /include/asm-i386
parent7b2f27f4e1818fad980da7bea688dca2b9e9c3f3 (diff)
[PATCH] i386: PARAVIRT: Use enums for paravirt lazy flush modi
Remove #defines, add enum for PARAVIRT_LAZY_FLUSH. Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com> Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include/asm-i386')
-rw-r--r--include/asm-i386/paravirt.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/asm-i386/paravirt.h b/include/asm-i386/paravirt.h
index 5048b41428fa..c5451923c79e 100644
--- a/include/asm-i386/paravirt.h
+++ b/include/asm-i386/paravirt.h
@@ -30,6 +30,7 @@ enum paravirt_lazy_mode {
30 PARAVIRT_LAZY_NONE = 0, 30 PARAVIRT_LAZY_NONE = 0,
31 PARAVIRT_LAZY_MMU = 1, 31 PARAVIRT_LAZY_MMU = 1,
32 PARAVIRT_LAZY_CPU = 2, 32 PARAVIRT_LAZY_CPU = 2,
33 PARAVIRT_LAZY_FLUSH = 3,
33}; 34};
34 35
35struct paravirt_ops 36struct paravirt_ops
@@ -1036,12 +1037,6 @@ static inline pte_t raw_ptep_get_and_clear(pte_t *p)
1036} 1037}
1037#endif /* CONFIG_X86_PAE */ 1038#endif /* CONFIG_X86_PAE */
1038 1039
1039/* Lazy mode for batching updates / context switch */
1040#define PARAVIRT_LAZY_NONE 0
1041#define PARAVIRT_LAZY_MMU 1
1042#define PARAVIRT_LAZY_CPU 2
1043#define PARAVIRT_LAZY_FLUSH 3
1044
1045#define __HAVE_ARCH_ENTER_LAZY_CPU_MODE 1040#define __HAVE_ARCH_ENTER_LAZY_CPU_MODE
1046static inline void arch_enter_lazy_cpu_mode(void) 1041static inline void arch_enter_lazy_cpu_mode(void)
1047{ 1042{