summaryrefslogtreecommitdiffstats
path: root/scripts/gdb
diff options
context:
space:
mode:
authorWen Yang <wenyang@linux.alibaba.com>2020-01-03 16:54:58 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-01-07 12:42:56 +0100
commit809ed78a832df8b4ef81fee03570566c8f088f3a (patch)
treef6d2756479859f245c57e13cbb045bf637d38832 /scripts/gdb
parentPM: wakeup: Show statistics for deleted wakeup sources again (diff)
downloadlinux-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