projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0ccf27
)
sh: Make sure all SH-X3 cores are populated in the present CPU map.
author
Paul Mundt
<lethal@linux-sh.org>
Mon, 26 Apr 2010 09:44:04 +0000
(18:44 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Mon, 26 Apr 2010 09:44:04 +0000
(18:44 +0900)
This iterates over the maximum number of CPUs we plan to support and
makes sure they're all set in the present CPU map.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh4a/smp-shx3.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/kernel/cpu/sh4a/smp-shx3.c
b/arch/sh/kernel/cpu/sh4a/smp-shx3.c
index 5c5d50ccbfcd327362b46d187dbe3b4d82d80812..dd245e68aa2ec9db0b3788df2fe1ecb6b73f3120 100644
(file)
--- a/
arch/sh/kernel/cpu/sh4a/smp-shx3.c
+++ b/
arch/sh/kernel/cpu/sh4a/smp-shx3.c
@@
-74,6
+74,9
@@
static void shx3_prepare_cpus(unsigned int max_cpus)
for (i = 0; i < SMP_MSG_NR; i++)
request_irq(104 + i, ipi_interrupt_handler,
IRQF_DISABLED | IRQF_PERCPU, "IPI", (void *)(long)i);
+
+ for (i = 0; i < max_cpus; i++)
+ set_cpu_present(i, true);
}
static void shx3_start_cpu(unsigned int cpu, unsigned long entry_point)