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

Commit 356791cb authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

ANDROID: arm64: Use __pa_symbol for kernel symbols



'BACKPORT: arm64: Use __pa_symbol for kernel symbols' missed a spot.
Upstream has removed the fragment associated with idmap_pg_dir, so
this is a 3.18-ony adjustment.

Signed-off-by: default avatarMark Salyzyn <salyzyn@google.com>
Bug: 63737556
Bug: 20045882
Change-Id: If4a65eed30113993e7ac178f69625d5305892184
parent cfe9be91
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
#include <linux/ftrace.h>
#include <linux/mm.h>
#include <linux/percpu.h>
#include <linux/slab.h>
#include <asm/cacheflush.h>
@@ -163,7 +164,7 @@ static int __init cpu_suspend_init(void)

	sleep_save_sp.save_ptr_stash = ctx_ptr;
	sleep_save_sp.save_ptr_stash_phys = virt_to_phys(ctx_ptr);
	sleep_idmap_phys = virt_to_phys(idmap_pg_dir);
	sleep_idmap_phys = __pa_symbol(idmap_pg_dir);
	__flush_dcache_area(&sleep_save_sp, sizeof(struct sleep_save_sp));
	__flush_dcache_area(&sleep_idmap_phys, sizeof(sleep_idmap_phys));