]> www.infradead.org Git - users/willy/pagecache.git/commit
efi/mokvar-table: Avoid repeated map/unmap of the same page
authorArd Biesheuvel <ardb@kernel.org>
Thu, 27 Feb 2025 13:30:22 +0000 (14:30 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 27 Feb 2025 17:25:44 +0000 (18:25 +0100)
commite3cf2d91d0583cae70aeb512da87e3ade25ea912
tree4538b7444ac836b147b39d7fb77031db652cde45
parent2b90e7ace79774a3540ce569e000388f8d22c9e0
efi/mokvar-table: Avoid repeated map/unmap of the same page

Tweak the logic that traverses the MOKVAR UEFI configuration table to
only unmap the entry header and map the next one if they don't live in
the same physical page.

Link: https://lore.kernel.org/all/8f085931-3e9d-4386-9209-1d6c95616327@uncooperative.org/
Tested-By: Peter Jones <pjones@redhat.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/mokvar-table.c