From: Zeng Tao <prime.zeng@huawei.com>
To: <catalin.marinas@arm.com>, <will.deacon@arm.com>
Cc: <suzuki.poulose@arm.com>, <james.morse@arm.com>,
<mark.rutland@arm.com>, <yang.shi@linaro.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Subject: [PATCH] arm64: fix /proc/cpuinfo for elf32
Date: Mon, 25 Apr 2016 11:37:33 +0800 [thread overview]
Message-ID: <1461555453-60440-1-git-send-email-prime.zeng@huawei.com> (raw)
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 <prime.zeng@huawei.com>
---
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
next reply other threads:[~2016-04-25 3:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-25 3:37 Zeng Tao [this message]
2016-04-25 9:12 ` Catalin Marinas
2016-04-26 2:21 ` Zengtao (B)
2016-04-26 9:20 ` Suzuki K Poulose
2016-04-27 2:13 ` Zengtao (B)
2016-04-27 10:24 ` Catalin Marinas
2016-04-26 2:07 Zengtao (B)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1461555453-60440-1-git-send-email-prime.zeng@huawei.com \
--to=prime.zeng@huawei.com \
--cc=catalin.marinas@arm.com \
--cc=james.morse@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=suzuki.poulose@arm.com \
--cc=will.deacon@arm.com \
--cc=yang.shi@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®