diff options
author | Tero Kristo <tero.kristo@nokia.com> | 2009-10-26 14:10:40 +0100 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-01-21 03:16:02 +0100 |
commit | afbcf6197d78aed814e90bad6099ecfbeb756ec1 (patch) | |
tree | d84a99a5f61eca7dd15eae6e4b67f181815ef7de /arch | |
parent | OMAP3: PM: Remove duplicate code blocks (diff) | |
download | linux-afbcf6197d78aed814e90bad6099ecfbeb756ec1.tar.xz linux-afbcf6197d78aed814e90bad6099ecfbeb756ec1.zip |
OMAP3: CPUidle: Fixed timer resolution
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/cpuidle34xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c index a26d6a08ae3f..12f0cbfc2894 100644 --- 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; } /** |