diff options
author | Andre Przywara <andre.przywara@arm.com> | 2014-11-14 15:54:08 (GMT) |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2014-11-25 13:46:36 (GMT) |
commit | e039ee4ee3fcf174736f2cb0a2eed6cb908348a6 (patch) | |
tree | 65cb1ee1f7ad18726189954a4fd4d0f64420838a /arch/arm64/mm | |
parent | 930da09f5e50dd22fb0a8600388da8677d62d671 (diff) | |
download | linux-e039ee4ee3fcf174736f2cb0a2eed6cb908348a6.tar.xz |
arm64: add alternative runtime patching
With a blatant copy of some x86 bits we introduce the alternative
runtime patching "framework" to arm64.
This is quite basic for now and we only provide the functions we need
at this time.
This is connected to the newly introduced feature bits.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r-- | arch/arm64/mm/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 494297c..bac492c 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -39,6 +39,7 @@ #include <asm/setup.h> #include <asm/sizes.h> #include <asm/tlb.h> +#include <asm/alternative.h> #include "mm.h" @@ -325,6 +326,7 @@ void __init mem_init(void) void free_initmem(void) { free_initmem_default(0); + free_alternatives_memory(); } #ifdef CONFIG_BLK_DEV_INITRD |