lkml.org 
[lkml]   [2014]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: efi: create memory map iteration helper
On Wed, 08 Jan, at 02:50:53PM, Mark Salter wrote:
> There are about a dozen places in the x86 EFI code which loop through
> the EFI memory map descriptors. All of these places use essentially
> the same for-loop code. This patch adds a for_each_efi_memory_desc()
> helper to clean up all of the duplicate code and make it available
> for other architectures to use.
>
> Signed-off-by: Mark Salter <msalter@redhat.com>
> ---
> arch/x86/platform/efi/efi.c | 48 +++++++++++++-----------------------------
> arch/x86/platform/efi/efi_64.c | 5 +----
> drivers/firmware/efi/efi.c | 5 ++---
> include/linux/efi.h | 6 ++++++
> 4 files changed, 24 insertions(+), 40 deletions(-)

Thanks Mark, I like this. Applied.

--
Matt Fleming, Intel Open Source Technology Center


\
 
 \ /
  Last update: 2014-01-13 20:41    [W:0.032 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site