]> git.baikalelectronics.ru Git - kernel.git/commit
arch/tile: Use separate, better minsec values for clocksource and sched_clock.
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 13 Aug 2010 12:24:22 +0000 (08:24 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 13 Aug 2010 12:24:22 +0000 (08:24 -0400)
commit205992a251a9a8838a5a87537ca4641b992b868e
tree1728f62b00935ecf9ac16bd9e3871f9d0e7ad75c
parent2337a8ec81f74afe81e4b11f07b194bdc7033858
arch/tile: Use separate, better minsec values for clocksource and sched_clock.

We were using the same 5-sec minsec for the clocksource and sched_clock
that we were using for the clock_event_device.  For the clock_event_device
that's exactly right since it has a short maximum countdown time.
But for sched_clock we want to avoid wraparound when converting from
ticks to nsec over a much longer window, so we force a shift of 10.
And for clocksource it seems dodgy to use a 5-sec minsec as well, so we
copy some other platforms and force a shift of 22.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/time.c