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

From: Boris Ostrovsky
Date: Thu Jan 12 2017 - 15:05:01 EST



> diff --git a/arch/x86/xen/spinlock.c b/arch/x86/xen/spinlock.c
> index e8a9ea7..a822606 100644
> --- a/arch/x86/xen/spinlock.c
> +++ b/arch/x86/xen/spinlock.c
> @@ -155,7 +155,6 @@ static __init int xen_init_spinlocks_jump(void)
> if (!xen_domain())
> return 0;
>
> - static_key_slow_inc(&paravirt_ticketlocks_enabled);
> return 0;
> }
> early_initcall(xen_init_spinlocks_jump);


Looks that with this change there is not much left of
xen_init_spinlocks_jump() and so it can be removed.

-boris