projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a174e60
)
OMAP3: CPUidle: Fixed timer resolution
author
Tero Kristo
<tero.kristo@nokia.com>
Mon, 26 Oct 2009 13:10:40 +0000
(15:10 +0200)
committer
Kevin Hilman
<khilman@deeprootsystems.com>
Thu, 21 Jan 2010 02:16:02 +0000
(18:16 -0800)
Previously used u32 as temporary data storage that wraps around at 4.294s.
Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/cpuidle34xx.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-omap2/cpuidle34xx.c
b/arch/arm/mach-omap2/cpuidle34xx.c
index
a26d6a0
..
12f0cbf
100644
(file)
--- a/
arch/arm/mach-omap2/cpuidle34xx.c
+++ b/
arch/arm/mach-omap2/cpuidle34xx.c
@@
-137,7
+137,7
@@
return_sleep_time:
local_irq_enable();
local_fiq_enable();
- return
(u32)timespec_to_ns(&ts_idle)/1000
;
+ return
ts_idle.tv_nsec / NSEC_PER_USEC + ts_idle.tv_sec * USEC_PER_SEC
;
}
/**