Skip to content

Commit

Permalink
arm64: proc: remove unused cpu_get_pgd macro
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wildea01 committed Mar 19, 2015
1 parent da9c177 commit ce47fbb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions arch/arm64/include/asm/proc-fns.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit ce47fbb

Please sign in to comment.