Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce47fbb7 authored by Will Deacon's avatar Will Deacon
Browse files

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: default avatarWill Deacon <will.deacon@arm.com>
parent da9c177d
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -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 */