From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932349AbcFIOqR (ORCPT ); Thu, 9 Jun 2016 10:46:17 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:53622 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932075AbcFIOqP (ORCPT ); Thu, 9 Jun 2016 10:46:15 -0400 X-IBM-Helo: d06dlp02.portsmouth.uk.ibm.com X-IBM-MailFrom: schwidefsky@de.ibm.com X-IBM-RcptTo: linux-arch@vger.kernel.org;linux-kernel@vger.kernel.org Date: Thu, 9 Jun 2016 16:45:32 +0200 From: Martin Schwidefsky To: David Howells Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Herrenschmidt , "David S. Miller" Subject: Re: [PATCH] bitmap_equal memcmp optimization for s390 In-Reply-To: <28415.1465482407@warthog.procyon.org.uk> References: <201606070837.u578Y1R5037289@mx0a-001b2d01.pphosted.com> <28415.1465482407@warthog.procyon.org.uk> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16060914-0016-0000-0000-000001F47A3E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16060914-0017-0000-0000-000021D98D4F Message-Id: <20160609164532.23f05026@mschwide> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-06-09_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-1604210000 definitions=main-1606090161 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 09 Jun 2016 15:26:47 +0100 David Howells wrote: > Martin Schwidefsky wrote: > > > I hesitate to put another CONFIG_S390 into common code, alternatively > > __HAVE_ARCH_MEMCMP could be used. There are 7 architectures with the > > define: arc, arm64, blackfin, frv, powerpc, s390 and sparc. > > Of those I guess only powerpc, s390 and sparc will have configs with > > (NR_CPUS > BITS_PER_LONG). For (NR_CPUS <= BITS_PER_LONG) the xor > > optimization is used. > > FRV doesn't have __HAVE_ARCH_MEMCMP for __KERNEL__. Yes indeed. How strange to define __HAVE_ARCH_xxx for user space only. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.