@@ -37,8 +37,7 @@ typedef unsigned long pte_basic_t;
#endif
struct page;
-extern void clear_pages(void *page, int order);
-static inline void clear_page(void *page) { clear_pages(page, 0); }
+void clear_page(void *page);
extern void copy_page(void *to, void *from);
#include <asm-generic/getorder.h>
@@ -517,15 +517,14 @@ END_FTR_SECTION_IFSET(CPU_FTR_COHERENT_ICACHE)
#endif /* CONFIG_BOOKE */
/*
- * Clear pages using the dcbz instruction, which doesn't cause any
+ * Clear page using the dcbz instruction, which doesn't cause any
* memory traffic (except to write out any cache lines which get
* displaced). This only works on cacheable memory.
*
- * void clear_pages(void *page, int order) ;
+ * void clear_page(void *page) ;
*/
-_GLOBAL(clear_pages)
+_GLOBAL(clear_page)
li r0,PAGE_SIZE/L1_CACHE_BYTES
- slw r0,r0,r4
mtctr r0
1: dcbz 0,r3
addi r3,r3,L1_CACHE_BYTES
@@ -10,7 +10,6 @@
#include <asm/pgtable.h>
#include <asm/dcr.h>
-EXPORT_SYMBOL(clear_pages);
EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
EXPORT_SYMBOL(DMA_MODE_READ);
EXPORT_SYMBOL(DMA_MODE_WRITE);
clear_pages() is never used, and PPC32 is the only architecture (still) having this function. Neither PPC64 nor any other architecture has it. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> --- arch/powerpc/include/asm/page_32.h | 3 +-- arch/powerpc/kernel/misc_32.S | 7 +++---- arch/powerpc/kernel/ppc_ksyms_32.c | 1 - 3 files changed, 4 insertions(+), 7 deletions(-)