summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-3.0.6/acp3448v2/0004-change-arch_powerpc_kernel_setup_32_c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-3.0.6/acp3448v2/0004-change-arch_powerpc_kernel_setup_32_c.patch')
-rw-r--r--recipes-kernel/linux/linux-3.0.6/acp3448v2/0004-change-arch_powerpc_kernel_setup_32_c.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-3.0.6/acp3448v2/0004-change-arch_powerpc_kernel_setup_32_c.patch b/recipes-kernel/linux/linux-3.0.6/acp3448v2/0004-change-arch_powerpc_kernel_setup_32_c.patch
new file mode 100644
index 0000000..06ec9bd
--- /dev/null
+++ b/recipes-kernel/linux/linux-3.0.6/acp3448v2/0004-change-arch_powerpc_kernel_setup_32_c.patch
@@ -0,0 +1,56 @@
1From 33177944407c15cf8b1981c0803c5b30637781fa Mon Sep 17 00:00:00 2001
2From: Jerry Pei <jerry.pei@enea.com>
3Date: Mon, 23 Apr 2012 14:38:06 +0800
4Subject: [PATCH 4/7] change arch_powerpc_kernel_setup_32_c for lsi acp
5
6Signed-off-by: Jerry Pei <jerry.pei@enea.com>
7---
8 arch/powerpc/kernel/setup_32.c | 15 +++++++--------
9 1 files changed, 7 insertions(+), 8 deletions(-)
10
11diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
12index 620d792..33c17df 100644
13--- a/arch/powerpc/kernel/setup_32.c
14+++ b/arch/powerpc/kernel/setup_32.c
15@@ -121,12 +121,12 @@ notrace void __init machine_init(unsigned long dt_ptr)
16 {
17 lockdep_init();
18
19- /* Enable early debugging if any specified (see udbg.h) */
20- udbg_early_init();
21-
22 /* Do some early initialization based on the flat device tree */
23 early_init_devtree(__va(dt_ptr));
24
25+ /* Enable early debugging if any specified (see udbg.h) */
26+ udbg_early_init();
27+
28 probe_machine();
29
30 setup_kdump_trampoline();
31@@ -259,18 +259,17 @@ static void __init irqstack_early_init(void)
32 #if defined(CONFIG_BOOKE) || defined(CONFIG_40x)
33 static void __init exc_lvl_early_init(void)
34 {
35- unsigned int i, hw_cpu;
36+ unsigned int i;
37
38 /* interrupt stacks must be in lowmem, we get that for free on ppc32
39 * as the memblock is limited to lowmem by MEMBLOCK_REAL_LIMIT */
40 for_each_possible_cpu(i) {
41- hw_cpu = get_hard_smp_processor_id(i);
42- critirq_ctx[hw_cpu] = (struct thread_info *)
43+ critirq_ctx[i] = (struct thread_info *)
44 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE));
45 #ifdef CONFIG_BOOKE
46- dbgirq_ctx[hw_cpu] = (struct thread_info *)
47+ dbgirq_ctx[i] = (struct thread_info *)
48 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE));
49- mcheckirq_ctx[hw_cpu] = (struct thread_info *)
50+ mcheckirq_ctx[i] = (struct thread_info *)
51 __va(memblock_alloc(THREAD_SIZE, THREAD_SIZE));
52 #endif
53 }
54--
551.7.0.4
56