Skip to content

Commit 65305ae

Browse files
committed
sh: Convert cache disabled SH-5 over to new cache interface.
The caches enabled case needs more work, but is presently broken regardless, so this can be done incrementally. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent eccee74 commit 65305ae

4 files changed

Lines changed: 1 addition & 39 deletions

File tree

‎arch/sh/include/asm/page.h‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,12 @@ extern void copy_page(void *to, void *from);
6363
struct page;
6464
struct vm_area_struct;
6565

66-
#if defined(CONFIG_CPU_SH5)
67-
extern void clear_user_page(void *to, unsigned long address, struct page *page);
68-
extern void copy_user_page(void *to, void *from, unsigned long address,
69-
struct page *page);
70-
71-
#else
7266
extern void copy_user_highpage(struct page *to, struct page *from,
7367
unsigned long vaddr, struct vm_area_struct *vma);
7468
#define __HAVE_ARCH_COPY_USER_HIGHPAGE
7569
extern void clear_user_highpage(struct page *page, unsigned long vaddr);
7670
#define clear_user_highpage clear_user_highpage
7771

78-
#endif
79-
8072
/*
8173
* These are used to make use of C type-checking..
8274
*/

‎arch/sh/include/cpu-sh5/cpu/cacheflush.h‎

Lines changed: 0 additions & 25 deletions
This file was deleted.

‎arch/sh/mm/Makefile_64‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Makefile for the Linux SuperH-specific parts of the memory manager.
33
#
44

5-
obj-y := init.o consistent.o mmap.o
5+
obj-y := cache.o consistent.o init.o kmap.o mmap.o
66

77
mmu-y := nommu.o extable_32.o
88
mmu-$(CONFIG_MMU) := fault_64.o ioremap_64.o tlbflush_64.o tlb-sh5.o \

‎arch/sh/mm/tlbflush_64.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,3 @@ void local_flush_tlb_kernel_range(unsigned long start, unsigned long end)
470470
void __update_tlb(struct vm_area_struct *vma, unsigned long address, pte_t pte)
471471
{
472472
}
473-
474-
void __update_cache(struct vm_area_struct *vma,
475-
unsigned long address, pte_t pte)
476-
{
477-
}

0 commit comments

Comments
 (0)