Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1557843

Re: [PATCH v2] x86, locking/spinlocks: Remove paravirt_ticketlocks_enabled

From Boris Ostrovsky <boris.ostrovsky@oracle.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2] x86, locking/spinlocks: Remove paravirt_ticketlocks_enabled
Date 2017-01-12 22:50 +0100
Message-ID <sYVpU-DA-29@gated-at.bofh.it> (permalink)
References <sYUau-8pV-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> diff --git a/arch/x86/xen/spinlock.c b/arch/x86/xen/spinlock.c
> index e8a9ea7..25a7c43 100644
> --- a/arch/x86/xen/spinlock.c
> +++ b/arch/x86/xen/spinlock.c
> @@ -141,25 +141,6 @@ void __init xen_init_spinlocks(void)
>  	pv_lock_ops.vcpu_is_preempted = PV_CALLEE_SAVE(xen_vcpu_stolen);
>  }
>  
> -/*
> - * While the jump_label init code needs to happend _after_ the jump labels are
> - * enabled and before SMP is started. Hence we use pre-SMP initcall level
> - * init. We cannot do it in xen_init_spinlocks as that is done before
> - * jump labels are activated.
> - */
> -static __init int xen_init_spinlocks_jump(void)
> -{
> -	if (!xen_pvspin)
> -		return 0;
> -
> -	if (!xen_domain())
> -		return 0;
> -
> -	static_key_slow_inc(&paravirt_ticketlocks_enabled);
> -	return 0;
> -}
> -early_initcall(xen_init_spinlocks_jump);
> -
>  static __init int xen_parse_nopvspin(char *arg)
>  {
>  	xen_pvspin = false;


Xen bits:

Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2] x86, locking/spinlocks: Remove paravirt_ticketlocks_enabled Waiman Long <longman@redhat.com> - 2017-01-12 21:30 +0100
  Re: [PATCH v2] x86, locking/spinlocks: Remove  paravirt_ticketlocks_enabled Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2017-01-12 22:50 +0100
  [tip:locking/core] locking/spinlocks/x86, paravirt: Remove  paravirt_ticketlocks_enabled tip-bot for Waiman Long <tipbot@zytor.com> - 2017-01-14 11:10 +0100

csiph-web