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


Groups > linux.kernel > #1727625

Re: [PATCH v2 1/2] paravirt/locks: use new static key for controlling call of virt_spin_lock()

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/2] paravirt/locks: use new static key for controlling call of virt_spin_lock()
Date 2017-09-06 18:10 +0200
Message-ID <umL3P-49l-5@gated-at.bofh.it> (permalink)
References <umKr7-3Dj-11@gated-at.bofh.it> <umKr7-3Dj-9@gated-at.bofh.it> <umKKt-3MF-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Sep 06, 2017 at 11:49:49AM -0400, Waiman Long wrote:
> >  #define virt_spin_lock virt_spin_lock
> >  static inline bool virt_spin_lock(struct qspinlock *lock)
> >  {
> > +	if (!static_branch_likely(&virt_spin_lock_key))
> > +		return false;
> >  	if (!static_cpu_has(X86_FEATURE_HYPERVISOR))
> >  		return false;
> >  

Now native has two NOPs instead of one. Can't we merge these two static
branches?

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


Thread

[PATCH v2 1/2] paravirt/locks: use new static key for controlling call of virt_spin_lock() Juergen Gross <jgross@suse.com> - 2017-09-06 17:30 +0200
  Re: [PATCH v2 1/2] paravirt/locks: use new static key for controlling  call of virt_spin_lock() Waiman Long <longman@redhat.com> - 2017-09-06 17:50 +0200
    Re: [PATCH v2 1/2] paravirt/locks: use new static key for  controlling call of virt_spin_lock() Peter Zijlstra <peterz@infradead.org> - 2017-09-06 18:10 +0200
      Re: [PATCH v2 1/2] paravirt/locks: use new static key for controlling  call of virt_spin_lock() Waiman Long <longman@redhat.com> - 2017-09-06 18:20 +0200
        Re: [PATCH v2 1/2] paravirt/locks: use new static key for controlling  call of virt_spin_lock() Juergen Gross <jgross@suse.com> - 2017-09-06 20:00 +0200

csiph-web