projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c06303
)
MIPS: Advertise MSA support via HWCAP when present
author
Paul Burton
<
[email protected]
>
Mon, 27 Jul 2015 19:58:25 +0000
(12:58 -0700)
committer
Ralf Baechle
<
[email protected]
>
Thu, 3 Sep 2015 10:08:00 +0000
(12:08 +0200)
If MSA is supported by both the hardware & the kernel then advertise
that support to userland via the AT_HWCAP aux vector.
Signed-off-by: Paul Burton <
[email protected]
>
Cc:
[email protected]
Cc: Guenter Roeck <
[email protected]
>
Cc: Matthew Fortune <
[email protected]
>
Cc: Leonid Yegoshin <
[email protected]
>
Cc: Maciej W. Rozycki <
[email protected]
>
Cc:
[email protected]
Cc: Huacai Chen <
[email protected]
>
Cc: Markos Chandras <
[email protected]
>
Patchwork: https://patchwork.linux-mips.org/patch/10799/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/kernel/cpu-probe.c
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/cpu-probe.c
b/arch/mips/kernel/cpu-probe.c
index 380a14b8772eaf54b4b73c6205eccc4eb1514f4f..571a8e6ea5bd0048a840bc539135f27c32fec621 100644
(file)
--- a/
arch/mips/kernel/cpu-probe.c
+++ b/
arch/mips/kernel/cpu-probe.c
@@
-1531,6
+1531,7
@@
void cpu_probe(void)
c->msa_id = cpu_get_msa_id();
WARN(c->msa_id & MSA_IR_WRPF,
"Vector register partitioning unimplemented!");
+ elf_hwcap |= HWCAP_MIPS_MSA;
}
cpu_probe_vmbits(c);