mpc8641hpcn/sbc8641d: Add missing board_lmb_reserves
authorBecky Bruce <beckyb@kernel.crashing.org>
Tue, 31 Mar 2009 23:38:37 +0000 (18:38 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 1 Apr 2009 03:41:34 +0000 (22:41 -0500)
We're missing the board_lmb_reserve definitions that allow
cpu_mp_lmb_reserve to be called; this means that Linux
is free to reallocate reserved pages.  Linux currently boots
because we're getting lucky - the page we've reserved is
high enough in memory that it isn't allocated by Linux
while we still need it to be in existence.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/mpc8641hpcn/mpc8641hpcn.c
board/sbc8641d/sbc8641d.c

index c94fc3f1d9cf089535cbf20fcb2de44b98687b03..1e35dfa7c46ba7d038f6a272352cb069f4ea8c9b 100644 (file)
@@ -374,3 +374,12 @@ void board_reset(void)
        while (1)
                ;
 }
+
+#if (CONFIG_NUM_CPUS > 1)
+extern void cpu_mp_lmb_reserve(struct lmb *lmb);
+
+void board_lmb_reserve(struct lmb *lmb)
+{
+       cpu_mp_lmb_reserve(lmb);
+}
+#endif
index 52ad2d86c9d42bc5b415157181f302b114b25a55..fc1f07dc0027e40e06866bb4914a14c3f9b55f8e 100644 (file)
@@ -413,3 +413,12 @@ void board_reset(void)
        __asm__ __volatile__ ("rfi");
 #endif
 }
+
+#if (CONFIG_NUM_CPUS > 1)
+extern void cpu_mp_lmb_reserve(struct lmb *lmb);
+
+void board_lmb_reserve(struct lmb *lmb)
+{
+       cpu_mp_lmb_reserve(lmb);
+}
+#endif