diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2017-10-20 09:30:50 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-11-07 15:35:57 +0100 |
commit | 4ac2aed837cbdbb21c12a28c04718e34c1dc225f (patch) | |
tree | 964a4e5bdb4825eabdfc0ae8b4acaf72adb88b64 /kernel/kexec_file.c | |
parent | 1379edd5967346a1fa79b8dc3e9ca261576c6bc9 (diff) |
resource: Consolidate resource walking code
The walk_iomem_res_desc(), walk_system_ram_res() and walk_system_ram_range()
functions each have much of the same code.
Create a new function that consolidates the common code from these
functions in one place to reduce the amount of duplicated code.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Borislav Petkov <bp@suse.de>
Tested-by: Borislav Petkov <bp@suse.de>
Cc: kvm@vger.kernel.org
Cc: Borislav Petkov <bp@alien8.de>
Link: https://lkml.kernel.org/r/20171020143059.3291-9-brijesh.singh@amd.com
Diffstat (limited to 'kernel/kexec_file.c')
0 files changed, 0 insertions, 0 deletions