projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42403cb
)
arm64: cpuinfo: compat task get hwcap from compat_hwcap_str
author
Huang, Tao
<huangtao@rock-chips.com>
Thu, 27 Oct 2016 08:25:34 +0000
(16:25 +0800)
committer
Huang, 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
patch
|
blob
|
history
diff --git
a/arch/arm64/kernel/cpuinfo.c
b/arch/arm64/kernel/cpuinfo.c
index 95a6fae54740e003a0b9b947a15954c389548f9b..cd5277012114c601239133e47dfe50ebcb36dd3c 100644
(file)
--- 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);