]> www.infradead.org Git - users/dwmw2/linux.git/commit
um: Count iomem_size only once in physmem calculation
authorTiwei Bie <tiwei.btw@antgroup.com>
Thu, 28 Nov 2024 08:19:39 +0000 (16:19 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 10 Jan 2025 12:49:33 +0000 (13:49 +0100)
commit06e0e6295957592cfceaa21124a49b55c98470c9
tree032b971f48046119091a631d9b1c812d2292ced2
parent5bfc4a3a0af3dcf53516e5f0dd9a2649bcd05bad
um: Count iomem_size only once in physmem calculation

When calculating max_physmem, we've already factored in the space
used by iomem. We don't need to subtract it again.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20241128081939.2216246-4-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/kernel/um_arch.c