diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-16 17:08:53 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-16 17:08:53 -0500 |
| commit | a643fc7253261be2275c02cb33fa7bf4bfc8cdc4 (patch) | |
| tree | a1dfb201555dd0082204e8a203e58690f099f501 /arch/xtensa/include/asm/cacheflush.h | |
| parent | 0db2812a5240f2663b92d8d4b761122dd2e0c6c3 (diff) | |
| parent | 1f2fdbd0078cb2ad4251768e8c0e0bb652a2cbd6 (diff) | |
Merge tag 'xtensa-next-20141215' of git://github.com/czankel/xtensa-linux
Pull Xtensa fixes from Chris Zankel:
- fix nommu support
- remove s6000 variant and s6105 platform
- fix permissions for kmapped pages so that copy_to_user_page works with them
- add power management menu to Kconfig to allow use of runtime PM
- disable linker optimizations because of a linker bug
- fix sparse error
* tag 'xtensa-next-20141215' of git://github.com/czankel/xtensa-linux:
xtensa: disable link optimization
xtensa/uaccess: fix sparse errors
xtensa: fix kmap_prot definition
xtensa: add power management menu to Kconfig
xtensa: remove s6000 variant and s6105 platform
xtensa: make PLATFORM_DEFAULT_MEM parameters configurable
xtensa: nommu: clean up memory map dump
xtensa: nommu: reserve memory below PLATFORM_DEFAULT_MEM_START
xtensa: nommu: set up cache and atomctl in initialize_mmu
xtensa: move vecbase SR initialization to _startup
xtensa: nommu: fix uImage load address
xtensa: nommu: fix load address definitions
xtensa: nommu: fix Image.elf reset code and ld script
xtensa: nommu: add MMU dependency to DEBUG_TLB_SANITY
xtensa: nommu: don't build most of the cache flushing code
xtensa: nommu: don't provide arch_get_unmapped_area
xtensa: nommu: provide MAP_UNINITIALIZED definition
xtensa: nommu: provide _PAGE_CHG_MASK definition
xtensa: nommu: provide __invalidate_dcache_page_alias stub
xtensa: nommu: move init_mmu stub to nommu_context.h
Diffstat (limited to 'arch/xtensa/include/asm/cacheflush.h')
| -rw-r--r-- | arch/xtensa/include/asm/cacheflush.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/xtensa/include/asm/cacheflush.h b/arch/xtensa/include/asm/cacheflush.h index e72aaca7a77f..5f67ace97b32 100644 --- a/arch/xtensa/include/asm/cacheflush.h +++ b/arch/xtensa/include/asm/cacheflush.h | |||
| @@ -67,6 +67,8 @@ extern void __invalidate_dcache_page_alias(unsigned long, unsigned long); | |||
| 67 | #else | 67 | #else |
| 68 | static inline void __flush_invalidate_dcache_page_alias(unsigned long virt, | 68 | static inline void __flush_invalidate_dcache_page_alias(unsigned long virt, |
| 69 | unsigned long phys) { } | 69 | unsigned long phys) { } |
| 70 | static inline void __invalidate_dcache_page_alias(unsigned long virt, | ||
| 71 | unsigned long phys) { } | ||
| 70 | #endif | 72 | #endif |
| 71 | #if defined(CONFIG_MMU) && (ICACHE_WAY_SIZE > PAGE_SIZE) | 73 | #if defined(CONFIG_MMU) && (ICACHE_WAY_SIZE > PAGE_SIZE) |
| 72 | extern void __invalidate_icache_page_alias(unsigned long, unsigned long); | 74 | extern void __invalidate_icache_page_alias(unsigned long, unsigned long); |
| @@ -84,7 +86,8 @@ static inline void __invalidate_icache_page_alias(unsigned long virt, | |||
| 84 | * (see also Documentation/cachetlb.txt) | 86 | * (see also Documentation/cachetlb.txt) |
| 85 | */ | 87 | */ |
| 86 | 88 | ||
| 87 | #if (DCACHE_WAY_SIZE > PAGE_SIZE) || defined(CONFIG_SMP) | 89 | #if defined(CONFIG_MMU) && \ |
| 90 | ((DCACHE_WAY_SIZE > PAGE_SIZE) || defined(CONFIG_SMP)) | ||
| 88 | 91 | ||
| 89 | #ifdef CONFIG_SMP | 92 | #ifdef CONFIG_SMP |
| 90 | void flush_cache_all(void); | 93 | void flush_cache_all(void); |
| @@ -150,7 +153,7 @@ void local_flush_cache_page(struct vm_area_struct *vma, | |||
| 150 | #define flush_dcache_mmap_lock(mapping) do { } while (0) | 153 | #define flush_dcache_mmap_lock(mapping) do { } while (0) |
| 151 | #define flush_dcache_mmap_unlock(mapping) do { } while (0) | 154 | #define flush_dcache_mmap_unlock(mapping) do { } while (0) |
| 152 | 155 | ||
| 153 | #if (DCACHE_WAY_SIZE > PAGE_SIZE) | 156 | #if defined(CONFIG_MMU) && (DCACHE_WAY_SIZE > PAGE_SIZE) |
| 154 | 157 | ||
| 155 | extern void copy_to_user_page(struct vm_area_struct*, struct page*, | 158 | extern void copy_to_user_page(struct vm_area_struct*, struct page*, |
| 156 | unsigned long, void*, const void*, unsigned long); | 159 | unsigned long, void*, const void*, unsigned long); |
