Commit 4e0fa856 authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by Andi Kleen

[PATCH] i386: PARAVIRT: Use enums for paravirt lazy flush modi

Remove #defines, add enum for PARAVIRT_LAZY_FLUSH.
Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
parent 7b2f27f4
...@@ -30,6 +30,7 @@ enum paravirt_lazy_mode { ...@@ -30,6 +30,7 @@ enum paravirt_lazy_mode {
PARAVIRT_LAZY_NONE = 0, PARAVIRT_LAZY_NONE = 0,
PARAVIRT_LAZY_MMU = 1, PARAVIRT_LAZY_MMU = 1,
PARAVIRT_LAZY_CPU = 2, PARAVIRT_LAZY_CPU = 2,
PARAVIRT_LAZY_FLUSH = 3,
}; };
struct paravirt_ops struct paravirt_ops
...@@ -1036,12 +1037,6 @@ static inline pte_t raw_ptep_get_and_clear(pte_t *p) ...@@ -1036,12 +1037,6 @@ static inline pte_t raw_ptep_get_and_clear(pte_t *p)
} }
#endif /* CONFIG_X86_PAE */ #endif /* CONFIG_X86_PAE */
/* Lazy mode for batching updates / context switch */
#define PARAVIRT_LAZY_NONE 0
#define PARAVIRT_LAZY_MMU 1
#define PARAVIRT_LAZY_CPU 2
#define PARAVIRT_LAZY_FLUSH 3
#define __HAVE_ARCH_ENTER_LAZY_CPU_MODE #define __HAVE_ARCH_ENTER_LAZY_CPU_MODE
static inline void arch_enter_lazy_cpu_mode(void) static inline void arch_enter_lazy_cpu_mode(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment