diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2009-02-18 02:24:03 -0500 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2009-03-30 02:35:59 -0400 |
commit | 7fd7d83d49914f03aefffba6aee09032fcd54cce (patch) | |
tree | 8c9f5b95f6b63b5d28887f47d92a6c79139eac5f /arch/x86/include/asm/paravirt.h | |
parent | b8bcfe997e46150fedcc3f5b26b846400122fdd9 (diff) |
x86/pvops: replace arch_enter_lazy_cpu_mode with arch_start_context_switch
Impact: simplification, prepare for later changes
Make lazy cpu mode more specific to context switching, so that
it makes sense to do more context-switch specific things in
the callbacks.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Diffstat (limited to 'arch/x86/include/asm/paravirt.h')
-rw-r--r-- | arch/x86/include/asm/paravirt.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index 0617d5cc9712..7b28abac323f 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h | |||
@@ -1420,19 +1420,17 @@ void paravirt_enter_lazy_mmu(void); | |||
1420 | void paravirt_leave_lazy_mmu(void); | 1420 | void paravirt_leave_lazy_mmu(void); |
1421 | void paravirt_leave_lazy(enum paravirt_lazy_mode mode); | 1421 | void paravirt_leave_lazy(enum paravirt_lazy_mode mode); |
1422 | 1422 | ||
1423 | #define __HAVE_ARCH_ENTER_LAZY_CPU_MODE | 1423 | #define __HAVE_ARCH_START_CONTEXT_SWITCH |
1424 | static inline void arch_enter_lazy_cpu_mode(void) | 1424 | static inline void arch_start_context_switch(void) |
1425 | { | 1425 | { |
1426 | PVOP_VCALL0(pv_cpu_ops.lazy_mode.enter); | 1426 | PVOP_VCALL0(pv_cpu_ops.lazy_mode.enter); |
1427 | } | 1427 | } |
1428 | 1428 | ||
1429 | static inline void arch_leave_lazy_cpu_mode(void) | 1429 | static inline void arch_end_context_switch(void) |
1430 | { | 1430 | { |
1431 | PVOP_VCALL0(pv_cpu_ops.lazy_mode.leave); | 1431 | PVOP_VCALL0(pv_cpu_ops.lazy_mode.leave); |
1432 | } | 1432 | } |
1433 | 1433 | ||
1434 | void arch_flush_lazy_cpu_mode(void); | ||
1435 | |||
1436 | #define __HAVE_ARCH_ENTER_LAZY_MMU_MODE | 1434 | #define __HAVE_ARCH_ENTER_LAZY_MMU_MODE |
1437 | static inline void arch_enter_lazy_mmu_mode(void) | 1435 | static inline void arch_enter_lazy_mmu_mode(void) |
1438 | { | 1436 | { |