From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Carstens Subject: Re: [PATCH v3] s390/spinlock: Provide vcpu_is_preempted Date: Wed, 19 Oct 2016 10:50:18 +0200 Message-ID: <20161019085018.GE4077@osiris> References: <20161019074448.GC4077@osiris> <1476866524-7724-1-git-send-email-borntraeger@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1476866524-7724-1-git-send-email-borntraeger@de.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Christian Borntraeger Cc: kernellwp@gmail.com, linux-s390@vger.kernel.org, benh@kernel.crashing.org, jgross@suse.com, kvm@vger.kernel.org, Peter Zijlstra , Pan Xinhui , will.deacon@arm.com, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, mingo@redhat.com, paulus@samba.org, mpe@ellerman.id.au, xen-devel-request@lists.xenproject.org, Martin Schwidefsky , pbonzini@redhat.com, paulmck@linux.vnet.ibm.com List-Id: virtualization@lists.linuxfoundation.org On Wed, Oct 19, 2016 at 10:42:04AM +0200, Christian Borntraeger wrote: > this implements the s390 backend for commit > "kernel/sched: introduce vcpu preempted check interface" > by reworking the existing smp_vcpu_scheduled into > arch_vcpu_is_preempted. We can then also get rid of the > local cpu_is_preempted function by moving the > CIF_ENABLED_WAIT test into arch_vcpu_is_preempted. > > Signed-off-by: Christian Borntraeger > --- > arch/s390/include/asm/spinlock.h | 8 ++++++++ > arch/s390/kernel/smp.c | 9 +++++++-- > arch/s390/lib/spinlock.c | 25 ++++++++----------------- > 3 files changed, 23 insertions(+), 19 deletions(-) Acked-by: Heiko Carstens