OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[tomoyo/tomoyo-test1.git]
/
arch
/
x86
/
platform
/
efi
/
quirks.c
diff --git
a/arch/x86/platform/efi/quirks.c
b/arch/x86/platform/efi/quirks.c
index
3c8d8e5
..
2661599
100644
(file)
--- a/
arch/x86/platform/efi/quirks.c
+++ b/
arch/x86/platform/efi/quirks.c
@@
-203,6
+203,10
@@
void __init efi_arch_mem_reserve(phys_addr_t addr, u64 size)
return;
}
+ /* No need to reserve regions that will never be freed. */
+ if (md.attribute & EFI_MEMORY_RUNTIME)
+ return;
+
size += addr % EFI_PAGE_SIZE;
size = round_up(size, EFI_PAGE_SIZE);
addr = round_down(addr, EFI_PAGE_SIZE);