1
0
Fork 0
alistair23-linux/arch/csky/include/asm
Mike Rapoport bd5ff06651 csky: switch to generic version of pte allocation
The csky implementation pte_alloc_one(), pte_free_kernel() and pte_free()
is identical to the generic except of lack of __GFP_ACCOUNT for the user
PTEs allocation.

Switch csky to use generic version of these functions.

The csky implementation of pte_alloc_one_kernel() is not replaced because
it does not clear the allocated page but rather sets each PTE in it to a
non-zero value.

The pte_free_kernel() and pte_free() versions on csky are identical to the
generic ones and can be simply dropped.

Link: http://lkml.kernel.org/r/1557296232-15361-6-git-send-email-rppt@linux.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Acked-by: Guo Ren <ren_guo@c-sky.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greentime Hu <green.hu@gmail.com>
Cc: Guan Xuetao <gxt@pku.edu.cn>
Cc: Guo Ren <guoren@kernel.org>
Cc: Helge Deller <deller@gmx.de>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Richard Kuo <rkuo@codeaurora.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Sam Creasey <sammy@sammy.net>
Cc: Vincent Chen <deanbo422@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-07-12 11:05:45 -07:00
..
Kbuild treewide: Add SPDX license identifier - Kbuild 2019-05-30 11:32:33 -07:00
addrspace.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
atomic.h csky: Atomic operations 2018-10-26 00:54:23 +08:00
barrier.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
bitops.h fls: change parameter to unsigned int 2019-01-04 13:13:46 -08:00
bug.h csky: Debug and Ptrace GDB 2018-10-26 00:54:25 +08:00
cache.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
cacheflush.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
checksum.h csky: Misc headers 2018-10-26 00:54:26 +08:00
cmpxchg.h csky: Atomic operations 2018-10-26 00:54:23 +08:00
elf.h csky: Add EM_CSKY_OLD 39 2018-12-31 23:17:24 +08:00
fixmap.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
ftrace.h csky/ftrace: Add dynamic function tracer (include graph tracer) 2019-04-22 13:44:57 +08:00
highmem.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
io.h csky: fixup CACHEV1 store instruction fast retire 2019-01-08 23:42:42 +08:00
irqflags.h csky: IRQ handling 2018-10-26 00:54:22 +08:00
mmu.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
mmu_context.h csky: Use va_pa_offset instead of phys_offset 2019-04-22 13:44:57 +08:00
page.h csky: Use va_pa_offset instead of phys_offset 2019-04-22 13:44:57 +08:00
perf_event.h csky: Add perf_arch_fetch_caller_regs support 2019-04-22 13:44:57 +08:00
pgalloc.h csky: switch to generic version of pte allocation 2019-07-12 11:05:45 -07:00
pgtable.h csky: Fixup io-range page attribute for mmap("/dev/mem") 2019-02-13 09:48:14 +08:00
processor.h csky: coding convention: Use task_stack_page 2019-02-13 09:48:14 +08:00
ptrace.h csky: Use in_syscall & forget_syscall instead of r11_sig 2019-04-22 13:44:57 +08:00
reg_ops.h csky: Misc headers 2018-10-26 00:54:26 +08:00
segment.h get rid of legacy 'get_ds()' function 2019-03-04 10:50:14 -08:00
shmparam.h csky: MMU and page table management 2018-10-25 23:36:19 +08:00
smp.h csky: CPU-hotplug supported for SMP 2018-12-31 23:03:53 +08:00
spinlock.h csky: Atomic operations 2018-10-26 00:54:23 +08:00
spinlock_types.h csky: Atomic operations 2018-10-26 00:54:23 +08:00
string.h csky: Library functions 2018-10-26 00:54:24 +08:00
switch_to.h csky: Process management and Signal 2018-10-26 00:54:13 +08:00
syscall.h arch/csky patches for 5.2-rc1 2019-05-08 11:41:08 -07:00
syscalls.h csky: System Call 2018-10-25 23:36:19 +08:00
thread_info.h csky: Update syscall_trace_enter/exit implementation 2019-04-22 13:44:57 +08:00
tlb.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
tlbflush.h csky: Cache and TLB routines 2018-10-25 23:36:19 +08:00
traps.h csky: Exception handling and mm-fault 2018-10-25 23:36:19 +08:00
uaccess.h Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
unistd.h csky: Update syscall_trace_enter/exit implementation 2019-04-22 13:44:57 +08:00
vdso.h csky: VDSO and rt_sigreturn 2018-10-26 00:54:22 +08:00