Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4180488imm; Mon, 25 Jun 2018 11:04:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI2+YVAkF+RMDrZJQhdhr0QXO+81j1+Zhw0x9s8Pg1ZgoaD5uH97Ov+TikZOtd3CfIqvPqH X-Received: by 2002:a65:665a:: with SMTP id z26-v6mr11719463pgv.117.1529949864829; Mon, 25 Jun 2018 11:04:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529949864; cv=none; d=google.com; s=arc-20160816; b=ZCo7kkMShu/FYW8AR1mUVaz82N2Wkz+Q0SWfnOOZ/CACqSH/rOjP3/yoFCMRiWv2YL vjD3GtvxutrQTvA7prGrr25Qn0dpoT9VMSFtxiQNKYGl0HgXthXBXItE+JXK8D1iPFkh iCzatSWifk9a/Ey9Qq/5X9cUx2VlaxPv0j0txgwcDGn7XdUaZgMwnm00cX82JjX5ngjU wwGVZeGTQYZ7ORYGbrJMxp+6OPVYRnwG3B39yJQvAti3amZ+X6C4RpQ3iAuvggEy0E5n UstIOuR9l6vhv6xXat0ilydxZ4U/h4VkO9VqqzwFHHP3M0e2qh4POIzwAKo+oIi3q0Ey oDcQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=vzk+Jh/qNUjgzANn0W2N0nn7S3uHe6CU2HTFY4qJ6/g=; b=ll1kbLnmdpr8oEkLyEkOiKeOkD+RxBG7DKkX7MlhTk1o+GXZVkzOwPn0WC8Zho3AET JV2CrTpuefp9CluXemvHCb2vNtAjlFRjncUzb+SylKMrap+ScFdfgVX+frYIPiKYjZaP veERfp+S0myjKENiGR2Wx7ffDPVJyt61lqH8JBbIjzRf0ozSo6+4grCfO5Q7Rx5oFKMo Ovrwy17mSWDQnx8Urd6bh4h1gnNgqf8pYQQKER022ayNJnSHlC3W1z0LU5cr0XiyBifn 4sq7L6ys2e7A/VWXSGb+5lyifLzTXiqHwrxMG9sjR3iVsdmt+EVzMvzchE0ts74qaXLv /bug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73-v6si9392189pga.99.2018.06.25.11.04.07; Mon, 25 Jun 2018 11:04:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964868AbeFYSDY (ORCPT + 99 others); Mon, 25 Jun 2018 14:03:24 -0400 Received: from terminus.zytor.com ([198.137.202.136]:49909 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964834AbeFYSDX (ORCPT ); Mon, 25 Jun 2018 14:03:23 -0400 Received: from hanvin-mobl2.amr.corp.intel.com (fmdmzpr03-ext.fm.intel.com [192.55.54.38]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id w5PI0kqt1280295 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 25 Jun 2018 11:00:47 -0700 Subject: Re: [PATCH v4 7/7] x86/vdso: Move out the CPU number store To: Thomas Gleixner , Andy Lutomirski Cc: "Bae, Chang Seok" , Ingo Molnar , Andi Kleen , Dave Hansen , "Metzger, Markus T" , "Ravi V. Shankar" , LKML , Peter Zijlstra References: <1529536506-26237-1-git-send-email-chang.seok.bae@intel.com> <1529536506-26237-8-git-send-email-chang.seok.bae@intel.com> <80C1F514-1B4D-4CDC-BD46-6C3AA9601446@amacapital.net> From: "H. Peter Anvin" Message-ID: Date: Mon, 25 Jun 2018 11:00:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/25/18 08:40, Thomas Gleixner wrote: > On Fri, 22 Jun 2018, Andy Lutomirski wrote: > >> On Fri, Jun 22, 2018 at 11:02 AM Bae, Chang Seok >> wrote: >>> >>>> Still setup_cpu_number() sucks. >>> >>> How about setup_cpu_and_node_number()? >> >> setup_fast_cpu_node_nr()? setup_cpunr_regs()? I don't have any >> brilliant ideas. Thomas? > > It's really hard to find a good one. setup_cpu_node_cache() might work, but > it's not brilliant either. > Since this applies to the getcpu(2) system call (in addition to the kernel usage), perhaps setup_getcpu()? -hpa