diff options
author | 2023-12-12 23:05:06 +0800 | |
---|---|---|
committer | 2023-12-20 15:02:58 -0800 | |
commit | 8474f82ade6f361169d85177b22279dcbe813219 (patch) | |
tree | 19224ed99cd9ac48f3b44bbf4ca98d7a18b5beaa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | kexec: use ALIGN macro instead of open-coding it (diff) | |
download | linux-rng-8474f82ade6f361169d85177b22279dcbe813219.tar.xz linux-rng-8474f82ade6f361169d85177b22279dcbe813219.zip |
x86/kexec: simplify the logic of mem_region_callback()
The expression `mstart + resource_size(res) - 1` is actually equivalent to
`res->end`, simplify the logic of this function to improve readability.
Link: https://lkml.kernel.org/r/20231212150506.31711-1-ytcoode@gmail.com
Signed-off-by: Yuntao Wang <ytcoode@gmail.com>
Acked-by: Baoquan He <bhe@redhat.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Simon Horman <horms@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions