提交 9ba1984e 编写于 作者: N Nathan Lynch 提交者: Benjamin Herrenschmidt

powerpc: register_cpu_online should be __cpuinit

It is called only in cpu online paths.

(caught by CONFIG_DEBUG_SECTION_MISMATCH=y)
Signed-off-by: NNathan Lynch <ntl@pobox.com>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 7d2f6075
...@@ -298,7 +298,7 @@ static struct sysdev_attribute pa6t_attrs[] = { ...@@ -298,7 +298,7 @@ static struct sysdev_attribute pa6t_attrs[] = {
}; };
static void register_cpu_online(unsigned int cpu) static void __cpuinit register_cpu_online(unsigned int cpu)
{ {
struct cpu *c = &per_cpu(cpu_devices, cpu); struct cpu *c = &per_cpu(cpu_devices, cpu);
struct sys_device *s = &c->sysdev; struct sys_device *s = &c->sysdev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册