summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/pxa3xx.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@stericsson.com>2010-11-19 10:16:05 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-11-21 22:05:57 +0000
commit8fbb97a2bc9b8c91b5a4588ba80709e48dad3f16 (patch)
tree7843b6acb76bf1b0679c78fdf3d45402eea8e86f /arch/arm/mach-pxa/pxa3xx.c
parent963fec4e0f4993486ee91edfafba0c972834d8c3 (diff)
ARM: 6488/1: nomadik: prevent sched_clock() wraparound
The current implementation of sched_clock() for the Nomadik family is based on the clock source that will wrap around without any compensation. Currently on the Ux500 after 1030 seconds. Utilize cnt32_to_63 to expand the sched_clock() counter to 63 bits and introduce a keepwarm() timer to assure that sched clock and this cnt32_to_63 is called atleast once every half period. When I print out the actual wrap-around time, and using a year (3600*24*365 seconds) as minumum wrap limit I get an actual wrap-around of: sched_clock: using 55 bits @ 8333125 Hz wrap in 416 days Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/pxa3xx.c')
0 files changed, 0 insertions, 0 deletions