Skip to contentSkip to conversation

arm64: drop unused __local_flush_icache_all()

PATCH New Kefeng Wang 3 participants 3 messages Mar 15, 2016 – Mar 21, 2016 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: drop unused __local_flush_icache_all()

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

---
 arch/arm64/include/asm/cacheflush.h | 7 -------
 1 file changed, 7 deletions(-)
arch/arm64/include/asm/cacheflush.h +0 -7
index 22dda61..c64268d 100644
@@ -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");
Signature · 1 line
2.6.0.GIT
reviewer
#1 lore raw

PATCH 1/1 arm64: drop unused __local_flush_icache_all()

Quoted 5 lines · Kefeng Wang

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

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:

Mark.

Quoted 31 lines
---
 arch/arm64/include/asm/cacheflush.h | 7 -------
 1 file changed, 7 deletions(-)
arch/arm64/include/asm/cacheflush.h +0 -7
index 22dda61..c64268d 100644
@@ -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");
Signature · 7 lines
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
maintainer Applied
#2 lore raw

PATCH 1/1 arm64: drop unused __local_flush_icache_all()

In reply to Kefeng Wang
Quoted 5 lines · Kefeng Wang

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

Applied. Thanks.

Signature · 1 line
Catalin