#include <asm/smp_plat.h>
#include <asm/suspend.h>
#include <asm/tlbflush.h>
+#ifdef CONFIG_AMLOGIC_VMAP
+#include <linux/amlogic/vmap_stack.h>
+#endif
/*
* This is allocated by cpu_suspend_init(), and used to store a pointer to
{
unsigned int cpu = smp_processor_id();
+#ifdef CONFIG_AMLOGIC_VMAP
+ __setup_vmap_stack(my_cpu_offset);
+#endif
/*
* We are resuming from reset with the idmap active in TTBR0_EL1.
* We must uninstall the idmap and restore the expected MMU
#include <linux/kobject.h>
#include <../kernel/power/power.h>
#include <linux/amlogic/scpi_protocol.h>
-#ifdef CONFIG_AMLOGIC_VMAP
-#include <linux/amlogic/vmap_stack.h>
-#endif
typedef unsigned long (psci_fn)(unsigned long, unsigned long,
unsigned long, unsigned long);
/* cpu_suspend(0, meson_system_suspend);
*/
pr_info("... wake up\n");
-#ifdef CONFIG_AMLOGIC_VMAP
- __setup_vmap_stack(my_cpu_offset);
-#endif
}
static int meson_pm_prepare(void)