From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933785AbcI3Oer (ORCPT ); Fri, 30 Sep 2016 10:34:47 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:58598 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933050AbcI3Oel (ORCPT ); Fri, 30 Sep 2016 10:34:41 -0400 Subject: Re: [PATCH v2 1/1] s390/spinlock: Provide vcpu_is_preempted To: Pan Xinhui , Peter Zijlstra , Martin Schwidefsky , Heiko Carstens References: <1475164265-246160-1-git-send-email-borntraeger@de.ibm.com> <1475164265-246160-2-git-send-email-borntraeger@de.ibm.com> Cc: Pan Xinhui , linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, xen-devel-request@lists.xenproject.org, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, mingo@redhat.com, paulmck@linux.vnet.ibm.com, will.deacon@arm.com, kernellwp@gmail.com, jgross@suse.com, pbonzini@redhat.com, bsingharora@gmail.com From: Christian Borntraeger Date: Fri, 30 Sep 2016 12:29:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16093010-0036-0000-0000-0000023ACF95 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16093010-0037-0000-0000-000012B1B78F Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-09-30_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609280000 definitions=main-1609300191 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/30/2016 06:49 AM, Pan Xinhui wrote: > > but I can't help thinking that if this is a!SMP system, maybe we could only > #ifndef CONFIG_SMP > static inline bool arch_vcpu_is_preempted(int cpu) { return false; } > #else Yes, I will add that to v3. Thanks for spotting.