From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932464Ab2DSUPE (ORCPT ); Thu, 19 Apr 2012 16:15:04 -0400 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:42883 "EHLO e28smtp05.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932390Ab2DSUPA (ORCPT ); Thu, 19 Apr 2012 16:15:00 -0400 From: Raghavendra K T To: "H. Peter Anvin" , Ingo Molnar Cc: Attilio Rao , Srivatsa Vaddagiri , the arch/x86 maintainers , Peter Zijlstra , Linus Torvalds , Virtualization , Konrad Rzeszutek Wilk , KVM , Raghavendra K T , Andi Kleen , Stefano Stabellini , Xen Devel , Jeremy Fitzhardinge , Marcelo Tosatti , Andrew Jones , Avi Kivity , Stephan Diestelhorst , LKML Date: Fri, 20 Apr 2012 01:44:39 +0530 Message-Id: <20120419201435.5411.86444.sendpatchset@codeblue> In-Reply-To: <20120419201209.5411.43877.sendpatchset@codeblue> References: <20120419201209.5411.43877.sendpatchset@codeblue> Subject: [PATCH RFC V7 6/12] xen/pvticketlocks: add xen_nopvspin parameter to disable xen pv ticketlocks x-cbid: 12041920-8256-0000-0000-0000020F8280 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jeremy Fitzhardinge Signed-off-by: Jeremy Fitzhardinge Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Raghavendra K T --- arch/x86/xen/spinlock.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/x86/xen/spinlock.c b/arch/x86/xen/spinlock.c index 982e64b..c9bf890 100644 --- a/arch/x86/xen/spinlock.c +++ b/arch/x86/xen/spinlock.c @@ -223,12 +223,26 @@ void xen_uninit_lock_cpu(int cpu) unbind_from_irqhandler(per_cpu(lock_kicker_irq, cpu), NULL); } +static bool xen_pvspin __initdata = true; + void __init xen_init_spinlocks(void) { + if (!xen_pvspin) { + printk(KERN_DEBUG "xen: PV spinlocks disabled\n"); + return; + } + pv_lock_ops.lock_spinning = xen_lock_spinning; pv_lock_ops.unlock_kick = xen_unlock_kick; } +static __init int xen_parse_nopvspin(char *arg) +{ + xen_pvspin = false; + return 0; +} +early_param("xen_nopvspin", xen_parse_nopvspin); + #ifdef CONFIG_XEN_DEBUG_FS static struct dentry *d_spin_debug;