From: Huang, Tao Date: Thu, 27 Oct 2016 08:25:34 +0000 (+0800) Subject: arm64: cpuinfo: compat task get hwcap from compat_hwcap_str X-Git-Tag: firefly_0821_release~1348 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=59fedde0b227a5260c7cd4bd62cd01bd09264d12;p=firefly-linux-kernel-4.4.55.git arm64: cpuinfo: compat task get hwcap from compat_hwcap_str backport 3.10 patch Change-Id: Ice8b552450f34772ece0a56f04ba758886c955e2 Signed-off-by: Huang, Tao --- diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index 95a6fae54740..cd5277012114 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -104,7 +104,8 @@ static const char *const compat_hwcap2_str[] = { static int c_show(struct seq_file *m, void *v) { int i, j; - bool compat = personality(current->personality) == PER_LINUX32; + bool compat = personality(current->personality) == PER_LINUX32 || + is_compat_task(); for_each_online_cpu(i) { struct cpuinfo_arm64 *cpuinfo = &per_cpu(cpu_data, i);