Messages in this thread Patch in this message | | | From | Christophe JAILLET <> | Subject | [PATCH] kernel/cpu_pm: mark 1 function as __init to save some memory | Date | Sun, 21 Jun 2020 10:33:15 +0200 |
| |
'cpu_pm_init()' is only called via 'core_initcall'. It can be marked as __init to save a few bytes of memory.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> --- kernel/cpu_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/cpu_pm.c b/kernel/cpu_pm.c index 44a259338e33..6a4717ae6917 100644 --- a/kernel/cpu_pm.c +++ b/kernel/cpu_pm.c @@ -191,7 +191,7 @@ static struct syscore_ops cpu_pm_syscore_ops = { .resume = cpu_pm_resume, }; -static int cpu_pm_init(void) +static int __init cpu_pm_init(void) { register_syscore_ops(&cpu_pm_syscore_ops); return 0; -- 2.25.1
| |