Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1338596 > unrolled thread

[PATCH v11 02/10] arm64: override generic version of early_init_dt_add_memory_arch()

Started byDavid Daney <ddaney.cavm@gmail.com>
First post2016-02-20 02:20 +0100
Last post2016-02-20 02:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v11 02/10] arm64: override generic version of early_init_dt_add_memory_arch() David Daney <ddaney.cavm@gmail.com> - 2016-02-20 02:20 +0100

#1338596 — [PATCH v11 02/10] arm64: override generic version of early_init_dt_add_memory_arch()

FromDavid Daney <ddaney.cavm@gmail.com>
Date2016-02-20 02:20 +0100
Subject[PATCH v11 02/10] arm64: override generic version of early_init_dt_add_memory_arch()
Message-ID<r44ng-5Fl-9@gated-at.bofh.it>
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>

Override the __weak early_init_dt_add_memory_arch() with our own
version. We need this in a subsequent patch to make the handling of
the memory nodes conditional on whether we are booting via UEFI or
not. Note that for now, all that our version does is invoke the generic
implementation.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: David Daney <david.daney@cavium.com>
---
 arch/arm64/mm/init.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c
index f3b061e..208c1d3 100644
--- a/arch/arm64/mm/init.c
+++ b/arch/arm64/mm/init.c
@@ -380,3 +380,8 @@ static int __init keepinitrd_setup(char *__unused)
 
 __setup("keepinitrd", keepinitrd_setup);
 #endif
+
+void __init early_init_dt_add_memory_arch(u64 base, u64 size)
+{
+	early_init_dt_add_memory(base, size);
+}
-- 
1.8.3.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web