projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d2f607
)
powerpc: register_cpu_online should be __cpuinit
author
Nathan Lynch
<ntl@pobox.com>
Sun, 27 Jul 2008 05:24:51 +0000
(15:24 +1000)
committer
Benjamin Herrenschmidt
<benh@kernel.crashing.org>
Mon, 28 Jul 2008 06:30:48 +0000
(16:30 +1000)
It is called only in cpu online paths.
(caught by CONFIG_DEBUG_SECTION_MISMATCH=y)
Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/sysfs.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/sysfs.c
b/arch/powerpc/kernel/sysfs.c
index 800e5e9a087bf1c6d73aefde583876736fe32045..156808086cacd6135b6f1048e2a5762a1c89bedf 100644
(file)
--- a/
arch/powerpc/kernel/sysfs.c
+++ b/
arch/powerpc/kernel/sysfs.c
@@
-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 sys_device *s = &c->sysdev;