diff options
author | Wen Yang <wenyang@linux.alibaba.com> | 2020-01-03 18:54:58 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-01-07 14:42:56 +0300 |
commit | 809ed78a832df8b4ef81fee03570566c8f088f3a (patch) | |
tree | f6d2756479859f245c57e13cbb045bf637d38832 /tools/perf/scripts/python/stackcollapse.py | |
parent | e976eb4b91e906f20ec25b20c152d53c472fc3fd (diff) | |
download | linux-809ed78a832df8b4ef81fee03570566c8f088f3a.tar.xz |
PM: hibernate: improve arithmetic division in preallocate_highmem_fraction()
do_div() does a 64-by-32 division. Use div64_u64() instead of
do_div() if the divisor is u64, to avoid truncation to 32-bit.
This change also cleans up code a tad.
Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions