diff options
author | Wen Yang <wenyang@linux.alibaba.com> | 2020-01-03 16:54:58 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-01-07 12:42:56 +0100 |
commit | 809ed78a832df8b4ef81fee03570566c8f088f3a (patch) | |
tree | f6d2756479859f245c57e13cbb045bf637d38832 /scripts/gdb | |
parent | PM: wakeup: Show statistics for deleted wakeup sources again (diff) | |
download | linux-809ed78a832df8b4ef81fee03570566c8f088f3a.tar.xz linux-809ed78a832df8b4ef81fee03570566c8f088f3a.zip |
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 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions