MIPS: crash_dump.c: Simplify copy_oldmem_page()
authorYouling Tang <tangyouling@loongson.cn>
Sun, 7 Feb 2021 07:24:09 +0000 (15:24 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 9 Feb 2021 12:30:12 +0000 (13:30 +0100)
commitfe6c98a115affdb3ff9cfccc5b6207127223d4b8
treea2cd09a4e2532cf6e8167a18abe0b17e1cc024ef
parent4088024344672daccfd7fc97ff6e6cc241d4a39e
MIPS: crash_dump.c: Simplify copy_oldmem_page()

Replace kmap_atomic_pfn() with kmap_local_pfn() which is preemptible and
can take page faults.

Remove the indirection of the dump page and the related cruft which is not
longer required.

Remove unused or redundant header files.

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/crash_dump.c