projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5a646a
)
selftests/powerpc: Make using_hash_mmu() work on Cell & PowerMac
author
Michael Ellerman
<mpe@ellerman.id.au>
Wed, 19 Aug 2020 01:57:19 +0000
(11:57 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Tue, 8 Sep 2020 12:23:51 +0000
(22:23 +1000)
These platforms don't show the MMU in /proc/cpuinfo, but they always
use hash, so teach using_hash_mmu() that.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20200819015727.1977134-1-mpe@ellerman.id.au
tools/testing/selftests/powerpc/utils.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/powerpc/utils.c
b/tools/testing/selftests/powerpc/utils.c
index
18b6a77
..
638ffac
100644
(file)
--- a/
tools/testing/selftests/powerpc/utils.c
+++ b/
tools/testing/selftests/powerpc/utils.c
@@
-318,7
+318,9
@@
int using_hash_mmu(bool *using_hash)
rc = 0;
while (fgets(line, sizeof(line), f) != NULL) {
- if (strcmp(line, "MMU : Hash\n") == 0) {
+ if (!strcmp(line, "MMU : Hash\n") ||
+ !strcmp(line, "platform : Cell\n") ||
+ !strcmp(line, "platform : PowerMac\n")) {
*using_hash = true;
goto out;
}