summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/paravirt-spinlocks.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2009-01-12 12:53:45 +0100
committerIngo Molnar <mingo@elte.hu>2009-01-20 17:14:28 +0100
commitafb33f8c0d7dea8c48ae1c2e3af5b437aa8dd7bb (patch)
tree7288c6668091059dd51064b6b4cbe39871846285 /arch/x86/kernel/paravirt-spinlocks.c
parent422e79a8b39d9ac73e410dc3cd099aecea82afd2 (diff)
x86: remove byte locks
Impact: cleanup Remove byte locks implementation, which was introduced by Jeremy in 8efcbab6 ("paravirt: introduce a "lock-byte" spinlock implementation"), but turned out to be dead code that is not used by any in-kernel virtualization guest (Xen uses its own variant of spinlocks implementation and KVM is not planning to move to byte locks). Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/paravirt-spinlocks.c')
-rw-r--r--arch/x86/kernel/paravirt-spinlocks.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/kernel/paravirt-spinlocks.c b/arch/x86/kernel/paravirt-spinlocks.c
index 95777b0faa73..3a7c5a44082e 100644
--- a/arch/x86/kernel/paravirt-spinlocks.c
+++ b/arch/x86/kernel/paravirt-spinlocks.c
@@ -26,13 +26,3 @@ struct pv_lock_ops pv_lock_ops = {
};
EXPORT_SYMBOL(pv_lock_ops);
-void __init paravirt_use_bytelocks(void)
-{
-#ifdef CONFIG_SMP
- pv_lock_ops.spin_is_locked = __byte_spin_is_locked;
- pv_lock_ops.spin_is_contended = __byte_spin_is_contended;
- pv_lock_ops.spin_lock = __byte_spin_lock;
- pv_lock_ops.spin_trylock = __byte_spin_trylock;
- pv_lock_ops.spin_unlock = __byte_spin_unlock;
-#endif
-}