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:
2d52ee8
)
MIPS: Octeon: Mark some functions __init in smp.c
author
Yang Shi
<
[email protected]
>
Sat, 20 Feb 2016 01:04:07 +0000
(17:04 -0800)
committer
Ralf Baechle
<
[email protected]
>
Fri, 13 May 2016 12:02:10 +0000
(14:02 +0200)
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: Yang Shi <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/12574/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/cavium-octeon/smp.c
patch
|
blob
|
history
diff --git
a/arch/mips/cavium-octeon/smp.c
b/arch/mips/cavium-octeon/smp.c
index 32c0cce73ed7cbaa6d82010e021057326d201074..dff88aa7e3778e9ec55d7edee2106fcaf84db7d2 100644
(file)
--- a/
arch/mips/cavium-octeon/smp.c
+++ b/
arch/mips/cavium-octeon/smp.c
@@
-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