aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/proc-fns.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-03-19 19:19:40 +0000
committerWill Deacon <will.deacon@arm.com>2015-03-19 19:47:13 +0000
commitce47fbb7c8956742a6de06b9706b1c6236339f51 (patch)
tree0e295175f88d1b34f2aaf5be7c3d02ffa673fb35 /arch/arm64/include/asm/proc-fns.h
parentarm64: enforce x1|x2|x3 == 0 upon kernel entry as per boot protocol (diff)
downloadlinux-dev-ce47fbb7c8956742a6de06b9706b1c6236339f51.tar.xz
linux-dev-ce47fbb7c8956742a6de06b9706b1c6236339f51.zip
arm64: proc: remove unused cpu_get_pgd macro
cpu_get_pgd isn't used anywhere and is Probably Not What You Want. Remove it before anybody decides to use it. Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/proc-fns.h')
-rw-r--r--arch/arm64/include/asm/proc-fns.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm64/include/asm/proc-fns.h b/arch/arm64/include/asm/proc-fns.h
index 9a8fd84f8fb2..4d9ede7b6361 100644
--- a/arch/arm64/include/asm/proc-fns.h
+++ b/arch/arm64/include/asm/proc-fns.h
@@ -41,15 +41,6 @@ extern u64 cpu_do_resume(phys_addr_t ptr, u64 idmap_ttbr);
#define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm)
-#define cpu_get_pgd() \
-({ \
- unsigned long pg; \
- asm("mrs %0, ttbr0_el1\n" \
- : "=r" (pg)); \
- pg &= ~0xffff000000003ffful; \
- (pgd_t *)phys_to_virt(pg); \
-})
-
#endif /* __ASSEMBLY__ */
#endif /* __KERNEL__ */
#endif /* __ASM_PROCFNS_H */