diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-03 16:28:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-03 16:28:14 -0400 |
commit | d6748066ad0e8b2514545998f8367ebb3906f299 (patch) | |
tree | f7a9bfd764a8fb781aeda0ef2249afbab42dddf7 /arch/mips/include/asm/cacheflush.h | |
parent | f04c045f8ce69c22bda9d99eb927276b776135fc (diff) | |
parent | 3ba1e543ab4b02640d396098f2f6a199560d5f2d (diff) |
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (37 commits)
MIPS: O32: Provide definition of registers ta0 .. ta3.
MIPS: perf: Add Octeon support for hardware perf.
MIPS: perf: Add support for 64-bit perf counters.
MIPS: perf: Reorganize contents of perf support files.
MIPS: perf: Cleanup formatting in arch/mips/kernel/perf_event.c
MIPS: Add accessor macros for 64-bit performance counter registers.
MIPS: Add probes for more Octeon II CPUs.
MIPS: Add more CPU identifiers for Octeon II CPUs.
MIPS: XLR, XLS: Add comment for smp setup
MIPS: JZ4740: GPIO: Check correct IRQ in demux handler
MIPS: JZ4740: GPIO: Simplify IRQ demuxer
MIPS: JZ4740: Use generic irq chip
MIPS: Alchemy: remove all CONFIG_SOC_AU1??? defines
MIPS: Alchemy: kill au1xxx.h header
MIPS: Alchemy: clean DMA code of CONFIG_SOC_AU1??? defines
MIPS, IDE: Alchem, au1xxx-ide: Remove pb1200/db1200 header dep
MIPS: Alchemy: Redo PCI as platform driver
MIPS: Alchemy: more base address cleanup
MIPS: Alchemy: rewrite USB platform setup.
MIPS: Alchemy: abstract USB block control register access
...
Fix up trivial conflicts in:
arch/mips/alchemy/devboards/db1x00/platform.c
drivers/ide/Kconfig
drivers/mmc/host/au1xmmc.c
drivers/video/Kconfig
sound/mips/Kconfig
Diffstat (limited to 'arch/mips/include/asm/cacheflush.h')
-rw-r--r-- | arch/mips/include/asm/cacheflush.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/mips/include/asm/cacheflush.h b/arch/mips/include/asm/cacheflush.h index 40bb9fde205f..69468ded2828 100644 --- a/arch/mips/include/asm/cacheflush.h +++ b/arch/mips/include/asm/cacheflush.h | |||
@@ -114,4 +114,28 @@ unsigned long run_uncached(void *func); | |||
114 | extern void *kmap_coherent(struct page *page, unsigned long addr); | 114 | extern void *kmap_coherent(struct page *page, unsigned long addr); |
115 | extern void kunmap_coherent(void); | 115 | extern void kunmap_coherent(void); |
116 | 116 | ||
117 | #define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE | ||
118 | static inline void flush_kernel_dcache_page(struct page *page) | ||
119 | { | ||
120 | BUG_ON(cpu_has_dc_aliases && PageHighMem(page)); | ||
121 | } | ||
122 | |||
123 | /* | ||
124 | * For now flush_kernel_vmap_range and invalidate_kernel_vmap_range both do a | ||
125 | * cache writeback and invalidate operation. | ||
126 | */ | ||
127 | extern void (*__flush_kernel_vmap_range)(unsigned long vaddr, int size); | ||
128 | |||
129 | static inline void flush_kernel_vmap_range(void *vaddr, int size) | ||
130 | { | ||
131 | if (cpu_has_dc_aliases) | ||
132 | __flush_kernel_vmap_range((unsigned long) vaddr, size); | ||
133 | } | ||
134 | |||
135 | static inline void invalidate_kernel_vmap_range(void *vaddr, int size) | ||
136 | { | ||
137 | if (cpu_has_dc_aliases) | ||
138 | __flush_kernel_vmap_range((unsigned long) vaddr, size); | ||
139 | } | ||
140 | |||
117 | #endif /* _ASM_CACHEFLUSH_H */ | 141 | #endif /* _ASM_CACHEFLUSH_H */ |