linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: drop unused __local_flush_icache_all()
@ 2016-03-15  9:47 Kefeng Wang
  2016-03-15 11:32 ` Mark Rutland
  2016-03-21 12:10 ` Catalin Marinas
  0 siblings, 2 replies; 3+ messages in thread
From: Kefeng Wang @ 2016-03-15  9:47 UTC (permalink / raw)
  To: linux-arm-kernel

After commit 65da0a8e34a8 ("arm64: use non-global mappings for UEFI
runtime regions"), nobody use __local_flush_icache_all() anymore,
so drop it.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
 arch/arm64/include/asm/cacheflush.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/arch/arm64/include/asm/cacheflush.h b/arch/arm64/include/asm/cacheflush.h
index 22dda61..c64268d 100644
--- a/arch/arm64/include/asm/cacheflush.h
+++ b/arch/arm64/include/asm/cacheflush.h
@@ -116,13 +116,6 @@ extern void copy_to_user_page(struct vm_area_struct *, struct page *,
 #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1
 extern void flush_dcache_page(struct page *);
 
-static inline void __local_flush_icache_all(void)
-{
-	asm("ic iallu");
-	dsb(nsh);
-	isb();
-}
-
 static inline void __flush_icache_all(void)
 {
 	asm("ic	ialluis");
-- 
2.6.0.GIT

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] arm64: drop unused __local_flush_icache_all()
  2016-03-15  9:47 [PATCH] arm64: drop unused __local_flush_icache_all() Kefeng Wang
@ 2016-03-15 11:32 ` Mark Rutland
  2016-03-21 12:10 ` Catalin Marinas
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Rutland @ 2016-03-15 11:32 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Mar 15, 2016 at 05:47:10PM +0800, Kefeng Wang wrote:
> After commit 65da0a8e34a8 ("arm64: use non-global mappings for UEFI
> runtime regions"), nobody use __local_flush_icache_all() anymore,
> so drop it.
> 
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>

The only other user was the old ASID allocator. For the boot and idle
paths we do the local maintenance in asm. I don't imagine we're likely
to need this again soon.

So FWIW:

Acked-by: Mark Rutland <mark.rutland@arm.com>

Mark.

> ---
>  arch/arm64/include/asm/cacheflush.h | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/arch/arm64/include/asm/cacheflush.h b/arch/arm64/include/asm/cacheflush.h
> index 22dda61..c64268d 100644
> --- a/arch/arm64/include/asm/cacheflush.h
> +++ b/arch/arm64/include/asm/cacheflush.h
> @@ -116,13 +116,6 @@ extern void copy_to_user_page(struct vm_area_struct *, struct page *,
>  #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1
>  extern void flush_dcache_page(struct page *);
>  
> -static inline void __local_flush_icache_all(void)
> -{
> -	asm("ic iallu");
> -	dsb(nsh);
> -	isb();
> -}
> -
>  static inline void __flush_icache_all(void)
>  {
>  	asm("ic	ialluis");
> -- 
> 2.6.0.GIT
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] arm64: drop unused __local_flush_icache_all()
  2016-03-15  9:47 [PATCH] arm64: drop unused __local_flush_icache_all() Kefeng Wang
  2016-03-15 11:32 ` Mark Rutland
@ 2016-03-21 12:10 ` Catalin Marinas
  1 sibling, 0 replies; 3+ messages in thread
From: Catalin Marinas @ 2016-03-21 12:10 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Mar 15, 2016 at 05:47:10PM +0800, Kefeng Wang wrote:
> After commit 65da0a8e34a8 ("arm64: use non-global mappings for UEFI
> runtime regions"), nobody use __local_flush_icache_all() anymore,
> so drop it.
> 
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>

Applied. Thanks.

-- 
Catalin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-21 12:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-15  9:47 [PATCH] arm64: drop unused __local_flush_icache_all() Kefeng Wang
2016-03-15 11:32 ` Mark Rutland
2016-03-21 12:10 ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).