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/kernel/paravirt.c | |
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/kernel/paravirt.c')
-rw-r--r-- | arch/x86/kernel/paravirt.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index 8ab250ac498b..5eea9548216b 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c | |||
@@ -301,19 +301,6 @@ void arch_flush_lazy_mmu_mode(void) | |||
301 | preempt_enable(); | 301 | preempt_enable(); |
302 | } | 302 | } |
303 | 303 | ||
304 | void arch_flush_lazy_cpu_mode(void) | ||
305 | { | ||
306 | preempt_disable(); | ||
307 | |||
308 | if (paravirt_get_lazy_mode() == PARAVIRT_LAZY_CPU) { | ||
309 | WARN_ON(preempt_count() == 1); | ||
310 | arch_leave_lazy_cpu_mode(); | ||
311 | arch_enter_lazy_cpu_mode(); | ||
312 | } | ||
313 | |||
314 | preempt_enable(); | ||
315 | } | ||
316 | |||
317 | struct pv_info pv_info = { | 304 | struct pv_info pv_info = { |
318 | .name = "bare hardware", | 305 | .name = "bare hardware", |
319 | .paravirt_enabled = 0, | 306 | .paravirt_enabled = 0, |