Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753458AbcDYDns (ORCPT ); Sun, 24 Apr 2016 23:43:48 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:21454 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751911AbcDYDnr (ORCPT ); Sun, 24 Apr 2016 23:43:47 -0400 From: Zeng Tao To: , CC: , , , , , Subject: [PATCH] arm64: fix /proc/cpuinfo for elf32 Date: Mon, 25 Apr 2016 11:37:33 +0800 Message-ID: <1461555453-60440-1-git-send-email-prime.zeng@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.83] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090202.571D9167.0056,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: f10655f3ad1eb6f5d59d0c016cb98dc6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 801 Lines: 25 For elf32 thread, personality is used for arm32, and thread_flag for arm64. Here personality is used for arm64, so fix it. Signed-off-by: Zeng Tao --- arch/arm64/kernel/cpuinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index 84c8684..f739398 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -126,7 +126,7 @@ static int c_show(struct seq_file *m, void *v) * software which does already (at least for 32-bit). */ seq_puts(m, "Features\t:"); - if (personality(current->personality) == PER_LINUX32) { + if (test_thread_flag(TIF_32BIT)) { #ifdef CONFIG_COMPAT for (j = 0; compat_hwcap_str[j]; j++) if (compat_elf_hwcap & (1 << j)) -- 1.9.1