aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorWen Yang <[email protected]>2020-01-13 16:29:26 -0800
committerLinus Torvalds <[email protected]>2020-01-13 18:19:02 -0800
commitd3ac946ec9de10ec4b9718ad30703c5e077916a1 (patch)
tree7430f6a5faab50eb94bde53d63b5e20c583caa13 /tools/perf/scripts/python/exported-sql-viewer.py
parent6d9e8c651dd979aa666bee15f086745f3ea9c4b3 (diff)
mm/page-writeback.c: use div64_ul() for u64-by-unsigned-long divide
The two variables 'numerator' and 'denominator', though they are declared as long, they should actually be unsigned long (according to the implementation of the fprop_fraction_percpu() function) And do_div() does a 64-by-32 division, while the divisor 'denominator' is unsigned long, thus 64-bit on 64-bit platforms. Hence the proper function to call is div64_ul(). Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Wen Yang <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Qian Cai <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Jens Axboe <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions