aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorSalman Qazi <[email protected]>2011-11-15 22:12:06 +0000
committerIngo Molnar <[email protected]>2011-11-16 18:51:25 +0000
commit4cecf6d401a01d054afc1e5f605bcbfe553cb9b9 (patch)
tree58978cec1b0757fde61e53c974dff062010713df /fs/btrfs/async-thread.c
parentsched: Fix buglet in return_cfs_rq_runtime() (diff)
downloadkernel-4cecf6d401a01d054afc1e5f605bcbfe553cb9b9.tar.gz
kernel-4cecf6d401a01d054afc1e5f605bcbfe553cb9b9.zip
sched, x86: Avoid unnecessary overflow in sched_clock
(Added the missing signed-off-by line) In hundreds of days, the __cycles_2_ns calculation in sched_clock has an overflow. cyc * per_cpu(cyc2ns, cpu) exceeds 64 bits, causing the final value to become zero. We can solve this without losing any precision. We can decompose TSC into quotient and remainder of division by the scale factor, and then use this to convert TSC into nanoseconds. Signed-off-by: Salman Qazi <[email protected]> Acked-by: John Stultz <[email protected]> Reviewed-by: Paul Turner <[email protected]> Cc: [email protected] Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions