projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c477b4
)
parisc: Disable huge pages on Mako machines
author
Helge Deller
<deller@gmx.de>
Sun, 6 Dec 2015 20:25:20 +0000
(21:25 +0100)
committer
Helge Deller
<deller@gmx.de>
Sat, 12 Dec 2015 15:45:23 +0000
(16:45 +0100)
Mako-based machines (PA8800 and PA8900 CPUs) don't allow aliasing on
non-equaivalent addresses.
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/pgtable.h
patch
|
blob
|
history
diff --git
a/arch/parisc/include/asm/pgtable.h
b/arch/parisc/include/asm/pgtable.h
index
d8534f9
..
291cee2
100644
(file)
--- a/
arch/parisc/include/asm/pgtable.h
+++ b/
arch/parisc/include/asm/pgtable.h
@@
-372,7
+372,8
@@
static inline pte_t pte_mkspecial(pte_t pte) { return pte; }
*/
#ifdef CONFIG_HUGETLB_PAGE
#define pte_huge(pte) (pte_val(pte) & _PAGE_HUGE)
-#define pte_mkhuge(pte) (__pte(pte_val(pte) | _PAGE_HUGE))
+#define pte_mkhuge(pte) (__pte(pte_val(pte) | \
+ (parisc_requires_coherency() ? 0 : _PAGE_HUGE)))
#else
#define pte_huge(pte) (0)
#define pte_mkhuge(pte) (pte)