From patchwork Mon May 1 22:39:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 9707263 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 54EBF602B5 for ; Mon, 1 May 2017 22:39:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 462FB2807E for ; Mon, 1 May 2017 22:39:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 396B1281C3; Mon, 1 May 2017 22:39:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B4C702807E for ; Mon, 1 May 2017 22:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=8xVMQILsXoTKeNLMf/NuZlgjaNpCI4ll112LrJ4eX/M=; b=RtD tdej4GvBeldPdojYDHkR/SS15GwdWiaYCfke9m8WcNtS1naqT9SItA/0LxnLdxPq+ZFXj+MsUKTWK sTSCYc5GpGYtY1saZlRI423dCA+vox9z3a1RgTLXm9UL5Vv3Csw3Jq5EDOESZ8EUJbyCo0nZEFLwt qxzN0UVgW/kHsUew0N+0UEIj/CJ2BK3CxOvJI2DLX2W7qs9PGo9VthnzlEp75xqiidnaCYQTf+6ZS NvZcXlpiE8Od0Ub+Cwmy8HWx8OEMlBLTLLWyKwlNkLokZ33PKEQeFozbOGPA9eMyZbsoYX0rTq75B stK/SKH958WfkPXnND57eww59a1otdQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d5Jyw-0003EY-29; Mon, 01 May 2017 22:39:50 +0000 Received: from mout.gmx.net ([212.227.17.20]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d5Jys-0003BE-Uk for linux-arm-kernel@lists.infradead.org; Mon, 01 May 2017 22:39:48 +0000 Received: from LT002.fritz.box ([95.222.184.236]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M5q45-1e2Lbq2rXN-00xuL5; Tue, 02 May 2017 00:39:19 +0200 From: Heinrich Schuchardt To: Catalin Marinas , Will Deacon Subject: [PATCH 1/1] arm64: Always provide "model name" in /proc/cpuinfo Date: Tue, 2 May 2017 00:39:13 +0200 Message-Id: <20170501223913.6894-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.11.0 X-Provags-ID: V03:K0:VxMg1r7VfWz4WzoBwk1mgVR/eJCaEBx3AwDMuTFDngRmIxKOEO+ ontDD3rP0WB2IDv3s9tV5ec2WzYlPr6m19yrYnFTCcTbjYGql6rHwcrBQyAwnQKgHeA8rw4 3p2dmSxUdBlArewhjTUusY34VDhV9mL12MuGn0tJBi9I4kbj44hwD35vYwS9oWBFwgV9BH7 iPmimluoB5s6y7hnAZQVA== X-UI-Out-Filterresults: notjunk:1; V01:K0:gJGjwOy5NjE=:8clWGJAHESlOTgg1LOV8qk 14y5xr/zbO9HaQBRCBR6JS5mCRT50dX7LxwqJUu5bbZjYtWvQCOUGUFLGU7vT7tLtjMyS+9k7 dSxDxHvZWSDk74xRdHUJjOc4V+iyw6cxkdHelygp4+hubZPezPa95eKyvA4UYMQ6OL3jT4WpV X63D/1+lhl2zVY5263lp6f2GsoDDlmSgVWa8Wpk56IGjBMrjriLenOB2vxisDVFiy90ekInPW MhL/OMQEHuy5fpmJzNS+Ui7mTDdG4GhIWPpf/714YwNRtdybiqTZ4sCgk65Gzm7EPHvb+ceBK 2NaSecLyB4SzNwN38QWUisUXiibaXGxI3AHx9l8qJM1piFr6QP1G/0fdv9md/8Nicez2vPi2G ARqd2UC+Q0YSZfFs2E3Q37JCxFQgNZrjiYPoK5hlub5pWHd+yG2kNq4JWCxpLNDJMXwgigeH0 dhxCJgJ6VB6ZwUJ5G0oNjzXD0a2Bw+s1vBM0PUCiyl9s7YPFFQPM4+Xrrv6iHTF/s3otWyfxj 4KIpIK1t69feWMbrI726P8Td6M3dkMPbM412dlIO00ny29bRHONQmk5mmRZ2euYQVWPSFJWgp MTbDg7m5zoybSnzKp3DOwTr/IUChqrZZcbeVLS6+Lyx8J5Twsoi0pMSnDefm+CMWXCIUR4Xoo yMAzX2nufE1r7vtSwf3I4w04MZ32ouzravryr7dUsKQGxRTsK0WO1rtv7VguToO5YEtod5JXk MlHhyemzCoXshyj8x0m5Cey27oiEvU+BVZsV1wvAhinaEJZY9EodiBU+L9g= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170501_153947_326326_43F65A2E X-CRM114-Status: UNSURE ( 9.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Steve Capper , Suzuki K Poulose , Andre Przywara , linux-kernel@vger.kernel.org, Julien Grall , Heinrich Schuchardt , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP There is no need to hide the model name in processes that are not PER_LINUX32. So let us always provide a model name that is easily readable. Fixes: e47b020a323d ("arm64: Provide "model name" in /proc/cpuinfo for PER_LINUX32 tasks") Signed-off-by: Heinrich Schuchardt --- arch/arm64/kernel/cpuinfo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index b3d5b3e8fbcb..9ad9ddcd2f19 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -118,9 +118,8 @@ static int c_show(struct seq_file *m, void *v) * "processor". Give glibc what it expects. */ seq_printf(m, "processor\t: %d\n", i); - if (compat) - seq_printf(m, "model name\t: ARMv8 Processor rev %d (%s)\n", - MIDR_REVISION(midr), COMPAT_ELF_PLATFORM); + seq_printf(m, "model name\t: ARMv8 Processor rev %d (%s)\n", + MIDR_REVISION(midr), COMPAT_ELF_PLATFORM); seq_printf(m, "BogoMIPS\t: %lu.%02lu\n", loops_per_jiffy / (500000UL/HZ),