projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da9c177
)
arm64: proc: remove unused cpu_get_pgd macro
author
Will Deacon
<will.deacon@arm.com>
Thu, 19 Mar 2015 19:19:40 +0000
(19:19 +0000)
committer
Will Deacon
<will.deacon@arm.com>
Thu, 19 Mar 2015 19:47:13 +0000
(19:47 +0000)
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>
arch/arm64/include/asm/proc-fns.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm64/include/asm/proc-fns.h
b/arch/arm64/include/asm/proc-fns.h
index 9a8fd84f8fb2b67fe4bc2d845e7f6b584cbf0799..4d9ede7b6361cffb359f09fcdf5a456d44834341 100644
(file)
--- 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 */