aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/paravirt.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-07-31 06:39:15 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-31 06:39:15 -0400
commiteac4345be6d17541039791f15f173d0426423df1 (patch)
tree1101a0a9bdbac146b7316eefbfc97b8a6917fc55 /arch/x86/kernel/paravirt.c
parent5fbf24659b75356e2142e1f1b88f67b34cbc3e75 (diff)
parentd5de8841355a48f7f634a04507185eaf1f9755e3 (diff)
Merge branch 'x86/spinlocks' into x86/xen
Diffstat (limited to 'arch/x86/kernel/paravirt.c')
-rw-r--r--arch/x86/kernel/paravirt.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c
index d8f2277be5a0..7faea1817d05 100644
--- a/arch/x86/kernel/paravirt.c
+++ b/arch/x86/kernel/paravirt.c
@@ -268,17 +268,6 @@ enum paravirt_lazy_mode paravirt_get_lazy_mode(void)
268 return __get_cpu_var(paravirt_lazy_mode); 268 return __get_cpu_var(paravirt_lazy_mode);
269} 269}
270 270
271void __init paravirt_use_bytelocks(void)
272{
273#ifdef CONFIG_SMP
274 pv_lock_ops.spin_is_locked = __byte_spin_is_locked;
275 pv_lock_ops.spin_is_contended = __byte_spin_is_contended;
276 pv_lock_ops.spin_lock = __byte_spin_lock;
277 pv_lock_ops.spin_trylock = __byte_spin_trylock;
278 pv_lock_ops.spin_unlock = __byte_spin_unlock;
279#endif
280}
281
282struct pv_info pv_info = { 271struct pv_info pv_info = {
283 .name = "bare hardware", 272 .name = "bare hardware",
284 .paravirt_enabled = 0, 273 .paravirt_enabled = 0,
@@ -465,18 +454,6 @@ struct pv_mmu_ops pv_mmu_ops = {
465 .set_fixmap = native_set_fixmap, 454 .set_fixmap = native_set_fixmap,
466}; 455};
467 456
468struct pv_lock_ops pv_lock_ops = {
469#ifdef CONFIG_SMP
470 .spin_is_locked = __ticket_spin_is_locked,
471 .spin_is_contended = __ticket_spin_is_contended,
472
473 .spin_lock = __ticket_spin_lock,
474 .spin_trylock = __ticket_spin_trylock,
475 .spin_unlock = __ticket_spin_unlock,
476#endif
477};
478EXPORT_SYMBOL_GPL(pv_lock_ops);
479
480EXPORT_SYMBOL_GPL(pv_time_ops); 457EXPORT_SYMBOL_GPL(pv_time_ops);
481EXPORT_SYMBOL (pv_cpu_ops); 458EXPORT_SYMBOL (pv_cpu_ops);
482EXPORT_SYMBOL (pv_mmu_ops); 459EXPORT_SYMBOL (pv_mmu_ops);