Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp428835ybk; Wed, 20 May 2020 03:16:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg3BI4Chm8uT04Gc6Eqa5uID/XrxRrysyeEsBzAjKfgZiEP20kGLyCOqbM6BB/dmrdtiVN X-Received: by 2002:a17:906:f885:: with SMTP id lg5mr2957358ejb.327.1589969806231; Wed, 20 May 2020 03:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589969806; cv=none; d=google.com; s=arc-20160816; b=jsCK8rNnrM2zg8+zpIl5IqxRVMJv4OQBT5YaGQFIvmuKApWCnccpB59ivLeJN4dMJq GhtLdhtkC9iCdOqN3sEEb8fEhsIFgn7qNfQYFEKe+A/yOrCaWmZ0KRsXbR0M8IcS3Xzr UOvCKCOaYkRcNujktiOmX3ICSnm1TvgffS/2AKko0jYIRy2JUmwO1na9/5796oRw98Ca Z9QWcLrxh0UC8O1HmY6iHMsrPdubK9EHUDTLRkr01F7aJYDh23Fsmi9pBEL2fvP4Owew xywGhfCNmkKKPonQMSE5ma3hPsSxHpCd7k+nv5ToIwfXdOiI2WcQHIJiJhaq2ucp/X1d mMZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=8bLHtz3BV/L39/FW/oh2sYThZNFwq67XjK/qDci+qxM=; b=B7z7AnwZb5Ip6Ek95E1ijV4um3/vIVBPZgibdh0Bxo55iJ41ifegtrY3zKJRYbDLjN irlHdP4JBRMZuQDwWWmVf1TI23eCqbaNafCPh1bDMjZ1AoOXovk8MOxpWvv8LuwcW2t1 xge3N8yFJnbd74FDJ2bvGN0g0mByVTOJxcik93PkqEoH5x5+/vNoYN4F7jPKbJaN6OWq IIg8YbuT14kaVkE1fgZzy8xXbz+cqYXhDjm16xs73oH+p4e9HYmRp12kxANqpBtlk5As HWKFxhGXAbqENuxJU/3EG/NyOeNc1RgXcuoHTj02Gh4pInGADk1CPakOSZ0Fb8orRgTO L1Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="WuO/L4wO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g25si1125316edy.554.2020.05.20.03.16.23; Wed, 20 May 2020 03:16:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="WuO/L4wO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726857AbgETKOu (ORCPT + 99 others); Wed, 20 May 2020 06:14:50 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:21069 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726570AbgETKOu (ORCPT ); Wed, 20 May 2020 06:14:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589969689; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8bLHtz3BV/L39/FW/oh2sYThZNFwq67XjK/qDci+qxM=; b=WuO/L4wO4LlyvpyuTe3c+K8SmtdWkaUTDX5fwtnrX9YNy+8LeEwuM866A+00y9/2I2qyNF g3hkFbzC2sSGd8GuNrAjwFaun8Dh1wQe2Onji8VeE5C+Iizyh2PLzTJOHHti1dgNVOi7Dt f6MO/6wudMvGyB3eG5wmxX5hKlB5zxM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-304-jycBi55nM4SRI02W8w7-FA-1; Wed, 20 May 2020 06:14:44 -0400 X-MC-Unique: jycBi55nM4SRI02W8w7-FA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C2C32100CCC4; Wed, 20 May 2020 10:14:42 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-113-191.ams2.redhat.com [10.36.113.191]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2C419707B8; Wed, 20 May 2020 10:14:39 +0000 (UTC) From: Florian Weimer To: Mathieu Desnoyers via Libc-alpha Cc: Mathieu Desnoyers , linux-api@vger.kernel.org, Boqun Feng , Will Deacon , linux-kernel@vger.kernel.org, Peter Zijlstra , Ben Maurer , Thomas Gleixner , "Paul E. McKenney" , Paul Turner , Joseph Myers Subject: Re: [PATCH glibc 2/3] glibc: sched_getcpu(): use rseq cpu_id TLS on Linux (v7) References: <20200501021439.2456-1-mathieu.desnoyers@efficios.com> <20200501021439.2456-3-mathieu.desnoyers@efficios.com> Date: Wed, 20 May 2020 12:14:38 +0200 In-Reply-To: <20200501021439.2456-3-mathieu.desnoyers@efficios.com> (Mathieu Desnoyers via Libc-alpha's message of "Thu, 30 Apr 2020 22:14:38 -0400") Message-ID: <87imgqdib5.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mathieu Desnoyers via Libc-alpha: > diff --git a/sysdeps/unix/sysv/linux/sched_getcpu.c b/sysdeps/unix/sysv/l= inux/sched_getcpu.c > index c019cfb3cf..2269c4f2bd 100644 > --- a/sysdeps/unix/sysv/linux/sched_getcpu.c > +++ b/sysdeps/unix/sysv/linux/sched_getcpu.c > @@ -18,10 +18,15 @@ > #include > #include > #include > +#include > #include >=20=20 > -int > -sched_getcpu (void) > +#ifdef HAVE_GETCPU_VSYSCALL > +# define HAVE_VSYSCALL > +#endif I think the #ifdef is a result of an incorrect merge of commit d0def09ff6bbf1537beec305fdfe96a21174fb31 ("linux: Fix vDSO macros build with time64 interfaces") and it should be removed. The commit subject should probably say =E2=80=9CLinux: Use rseq in sched_ge= tcpu if available=E2=80=9D. Thanks, Florian