Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1338611
| From | Yang Shi <yang.shi@windriver.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] mips: octeon: mark some functions __init in smp.c |
| Date | 2016-02-20 02:30 +0100 |
| Message-ID | <r44wV-5K3-13@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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 <yang.shi@windriver.com>
---
arch/mips/cavium-octeon/smp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/cavium-octeon/smp.c b/arch/mips/cavium-octeon/smp.c
index b7fa9ae..3f03893 100644
--- a/arch/mips/cavium-octeon/smp.c
+++ b/arch/mips/cavium-octeon/smp.c
@@ -97,7 +97,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;
@@ -196,7 +196,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
--
2.0.2
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] mips: octeon: mark some functions __init in smp.c Yang Shi <yang.shi@windriver.com> - 2016-02-20 02:30 +0100
csiph-web