@@ -13,13 +13,6 @@
#ifndef OMAP_ARCH_OMAP4_COMMON_H
#define OMAP_ARCH_OMAP4_COMMON_H
-/*
- * wfi used in low power code. Directly opcode is used instead
- * of instruction to avoid mulit-omap build break
- */
-#define do_wfi() \
- __asm__ __volatile__ (".word 0xe320f003" : : : "memory")
-
#ifdef CONFIG_CACHE_L2X0
extern void __iomem *l2cache_base;
#endif
@@ -19,6 +19,7 @@
#include <linux/smp.h>
#include <asm/cacheflush.h>
+#include <asm/system.h>
#include <mach/omap4-common.h>
int platform_cpu_kill(unsigned int cpu)
@@ -45,7 +46,7 @@ void platform_cpu_die(unsigned int cpu)
/*
* Execute WFI
*/
- do_wfi();
+ wfi();
if (omap_read_auxcoreboot0() == cpu) {
/*
@@ -16,6 +16,7 @@
#include <linux/err.h>
#include <linux/slab.h>
+#include <asm/system.h>
#include "powerdomain.h"
#include <mach/omap4-common.h>
@@ -33,7 +34,7 @@ static LIST_HEAD(pwrst_list);
#ifdef CONFIG_SUSPEND
static int omap4_pm_suspend(void)
{
- do_wfi();
+ wfi();
return 0;
}