diff options
Diffstat (limited to 'arch/blackfin/mach-bf609/pm.c')
-rw-r--r-- | arch/blackfin/mach-bf609/pm.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf609/pm.c b/arch/blackfin/mach-bf609/pm.c index 79cdf41096c2..849d77e5631c 100644 --- a/arch/blackfin/mach-bf609/pm.c +++ b/arch/blackfin/mach-bf609/pm.c | |||
@@ -147,6 +147,18 @@ void bfin_deepsleep(unsigned long mask) | |||
147 | "idle;" \ | 147 | "idle;" \ |
148 | : : \ | 148 | : : \ |
149 | ); | 149 | ); |
150 | #ifdef CONFIG_BFIN_PM_WAKEUP_TIME_BENCH | ||
151 | __asm__ __volatile__( | ||
152 | "%0 = 0;" | ||
153 | "CYCLES = %0;" | ||
154 | "CYCLES2 = %0;" | ||
155 | "%0 = SYSCFG;" | ||
156 | "BITSET(%0, 1);" | ||
157 | "SYSCFG = %0;" | ||
158 | : "=d,a" (dpm0_ctl) : | ||
159 | ); | ||
160 | #endif | ||
161 | |||
150 | } | 162 | } |
151 | 163 | ||
152 | __attribute__((l1_text)) | 164 | __attribute__((l1_text)) |