Skip to content

Commit

Permalink
[PATCH] i386: PARAVIRT: Use enums for paravirt lazy flush modi
Browse files Browse the repository at this point in the history
Remove #defines, add enum for PARAVIRT_LAZY_FLUSH.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Andi Kleen <ak@suse.de>
  • Loading branch information
Jeremy Fitzhardinge authored and Andi Kleen committed May 2, 2007
1 parent 7b2f27f commit 4e0fa85
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions include/asm-i386/paravirt.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ enum paravirt_lazy_mode {
PARAVIRT_LAZY_NONE = 0,
PARAVIRT_LAZY_MMU = 1,
PARAVIRT_LAZY_CPU = 2,
PARAVIRT_LAZY_FLUSH = 3,
};

struct paravirt_ops
Expand Down Expand Up @@ -1036,12 +1037,6 @@ static inline pte_t raw_ptep_get_and_clear(pte_t *p)
}
#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
static inline void arch_enter_lazy_cpu_mode(void)
{
Expand Down

0 comments on commit 4e0fa85

Please sign in to comment.