diff options
author | Andy Gross <andy.gross@linaro.org> | 2016-08-23 09:25:32 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2016-08-26 10:11:17 -0400 |
commit | 5a0e0691147a7f841ddb54d067b165071dff592f (patch) | |
tree | d019bdcb4e360a2ddc3ff8d4be9a79b851bab77e /arch/arm/include | |
parent | c94e4ad2d5e0e5f4036cccaa0e6e773841e8f859 (diff) |
ARM: 8601/1: Remove unused secure_flush_area API
This patch removes the unused secure_flush_area function. The only
consumer of this function has moved to using the streaming DMA APIs.
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/cacheflush.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h index 9156fc303afd..bdd283bc5842 100644 --- a/arch/arm/include/asm/cacheflush.h +++ b/arch/arm/include/asm/cacheflush.h | |||
@@ -501,21 +501,4 @@ static inline void set_kernel_text_ro(void) { } | |||
501 | void flush_uprobe_xol_access(struct page *page, unsigned long uaddr, | 501 | void flush_uprobe_xol_access(struct page *page, unsigned long uaddr, |
502 | void *kaddr, unsigned long len); | 502 | void *kaddr, unsigned long len); |
503 | 503 | ||
504 | /** | ||
505 | * secure_flush_area - ensure coherency across the secure boundary | ||
506 | * @addr: virtual address | ||
507 | * @size: size of region | ||
508 | * | ||
509 | * Ensure that the specified area of memory is coherent across the secure | ||
510 | * boundary from the non-secure side. This is used when calling secure | ||
511 | * firmware where the secure firmware does not ensure coherency. | ||
512 | */ | ||
513 | static inline void secure_flush_area(const void *addr, size_t size) | ||
514 | { | ||
515 | phys_addr_t phys = __pa(addr); | ||
516 | |||
517 | __cpuc_flush_dcache_area((void *)addr, size); | ||
518 | outer_flush_range(phys, phys + size); | ||
519 | } | ||
520 | |||
521 | #endif | 504 | #endif |