projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5981a5
)
C6X: add register_cpu call
author
Mark Salter
<
[email protected]
>
Sun, 8 Jan 2012 18:19:38 +0000
(13:19 -0500)
committer
Mark Salter
<
[email protected]
>
Sun, 8 Jan 2012 20:13:10 +0000
(15:13 -0500)
Commit
ccbc60d3e19a1b6ae66ca0d89b3da02dde62088b
requires CPU
topology information even in !SMP cases. This requires C6X to
add a call tp register_cpu() in order to avoid a panic at
boot time.
Signed-off-by: Mark Salter <
[email protected]
>
arch/c6x/kernel/setup.c
patch
|
blob
|
history
diff --git
a/arch/c6x/kernel/setup.c
b/arch/c6x/kernel/setup.c
index c126f0414be5fc53c955f7c4f2918b241a8ef3df..0c07921747f4d209f2ab7c978f14036d03308c57 100644
(file)
--- a/
arch/c6x/kernel/setup.c
+++ b/
arch/c6x/kernel/setup.c
@@
-23,6
+23,7
@@
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/clk.h>
+#include <linux/cpu.h>
#include <linux/fs.h>
#include <linux/of.h>
@@
-493,3
+494,17
@@
const struct seq_operations cpuinfo_op = {
c_next,
show_cpuinfo
};
+
+static struct cpu cpu_devices[NR_CPUS];
+
+static int __init topology_init(void)
+{
+ int i;
+
+ for_each_present_cpu(i)
+ register_cpu(&cpu_devices[i], i);
+
+ return 0;
+}
+
+subsys_initcall(topology_init);