diff options
author | 2021-03-11 13:32:16 +0100 | |
---|---|---|
committer | 2021-03-25 10:25:20 +0000 | |
commit | 45c2f70cba3a7eff34574103b2e2b901a5f771aa (patch) | |
tree | e97f0d5eb619a8328d78e34705a492daf3d0b30f /tools/perf/scripts/python/stackcollapse.py | |
parent | ARM: 9063/1: mm: reduce maximum number of CPUs if DEBUG_KMAP_LOCAL is enabled (diff) | |
download | wireguard-linux-45c2f70cba3a7eff34574103b2e2b901a5f771aa.tar.xz wireguard-linux-45c2f70cba3a7eff34574103b2e2b901a5f771aa.zip |
ARM: 9069/1: NOMMU: Fix conversion for_each_membock() to for_each_mem_range()
for_each_mem_range() uses a loop variable, yet looking into code it is
not just iteration counter but more complex entity which encodes
information about memblock. Thus condition i == 0 looks fragile.
Indeed, it broke boot of R-class platforms since it never took i == 0
path (due to i was set to 1). Fix that with restoring original flag
check.
Fixes: b10d6bca8720 ("arch, drivers: replace for_each_membock() with for_each_mem_range()")
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions