Skip to content

Commit

Permalink
sh: flag smp_store_cpu_info() __cpuinit.
Browse files Browse the repository at this point in the history
smp_store_cpu_info() is presently flagged as __init, but is called by
start_secondary() which is __cpuinit, fix it up.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Apr 26, 2010
1 parent 9715b8c commit 1cfa1e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/sh/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void __cpuinit register_smp_ops(struct plat_smp_ops *ops)
mp_ops = ops;
}

static inline void __init smp_store_cpu_info(unsigned int cpu)
static inline void __cpuinit smp_store_cpu_info(unsigned int cpu)
{
struct sh_cpuinfo *c = cpu_data + cpu;

Expand All @@ -66,7 +66,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
#endif
}

void __devinit smp_prepare_boot_cpu(void)
void __init smp_prepare_boot_cpu(void)
{
unsigned int cpu = smp_processor_id();

Expand Down

0 comments on commit 1cfa1e8

Please sign in to comment.