summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2010-06-04 16:30:55 -0700
committerGary King <gking@nvidia.com>2010-06-04 16:41:46 -0700
commite742fe51f766a091bf2a31f4adb165e9750f44c3 (patch)
tree472fc901315d2b4fa4840adf718547cdc4603024
parent9c896c29e686be0a1856c48c60d23fef84e4a9ff (diff)
[ARM/tegra] suspend/idle: return correct time from wait_for_us
due to a swapped source and destination value, wait_for_us was returning the time it started looping, not the time it exited Change-Id: I53455413ad969b7e02979c150883a2f18b222bd2 Reviewed-on: http://git-master/r/2152 Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/power-macros.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/power-macros.S b/arch/arm/mach-tegra/power-macros.S
index 9692de40bc6f..386bec1737e5 100644
--- a/arch/arm/mach-tegra/power-macros.S
+++ b/arch/arm/mach-tegra/power-macros.S
@@ -38,7 +38,7 @@
1001: ldr \tmp, [\base]
cmp \rd, \tmp
beq 1001b
- mov \tmp, \rd
+ mov \rd, \tmp
.endm
/* waits until the microsecond counter (base) is >= rn */