Commit 0e8c1a32 authored by Yang Shi's avatar Yang Shi Committed by Ralf Baechle

MIPS: Octeon: Mark some functions __init in smp.c

octeon_smp_setup and octeon_prepare_cpus are just used during initialization
period, so mark them as __init. And, octeon_prepare_cpus is just used in smp.c,
so make it static as well.
Signed-off-by: default avatarYang Shi <yang.shi@windriver.com>
Cc: david.daney@cavium.com
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12574/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 2d52ee82
......@@ -127,7 +127,7 @@ static void octeon_smp_hotplug_setup(void)
#endif
}
static void octeon_smp_setup(void)
static void __init octeon_smp_setup(void)
{
const int coreid = cvmx_get_core_num();
int cpus;
......@@ -228,7 +228,7 @@ static void octeon_init_secondary(void)
* Callout to firmware before smp_init
*
*/
void octeon_prepare_cpus(unsigned int max_cpus)
static void __init octeon_prepare_cpus(unsigned int max_cpus)
{
/*
* Only the low order mailbox bits are used for IPIs, leave
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment