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:
e14f1db
)
MIPS: Advertise MIPSr6 via HWCAP when appropriate
author
Paul Burton
<
[email protected]
>
Mon, 27 Jul 2015 19:58:24 +0000
(12:58 -0700)
committer
Ralf Baechle
<
[email protected]
>
Thu, 3 Sep 2015 10:07:59 +0000
(12:07 +0200)
When running on a CPU implementing the release 6 of the MIPS32 or MIPS64
ISA, advertise that to userland via the appropriate HWCAP bit.
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/10798/
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 b6c1feed8b7b6edc4a451a0f6376f2859511472a..380a14b8772eaf54b4b73c6205eccc4eb1514f4f 100644
(file)
--- a/
arch/mips/kernel/cpu-probe.c
+++ b/
arch/mips/kernel/cpu-probe.c
@@
-1524,6
+1524,9
@@
void cpu_probe(void)
else
c->srsets = 1;
+ if (cpu_has_mips_r6)
+ elf_hwcap |= HWCAP_MIPS_R6;
+
if (cpu_has_msa) {
c->msa_id = cpu_get_msa_id();
WARN(c->msa_id & MSA_IR_WRPF,