arm64: cpuinfo: compat task get hwcap from compat_hwcap_str
authorHuang, Tao <huangtao@rock-chips.com>
Thu, 27 Oct 2016 08:25:34 +0000 (16:25 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 27 Oct 2016 08:25:34 +0000 (16:25 +0800)
backport 3.10 patch

Change-Id: Ice8b552450f34772ece0a56f04ba758886c955e2
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
arch/arm64/kernel/cpuinfo.c

index 95a6fae..cd52770 100644 (file)
@@ -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);