summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/debug-monitors.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-05-31 13:00:15 +0200
committerWill Deacon <will@kernel.org>2020-06-04 16:21:29 +0100
commit5311ebfb612f08ec2a712a86d0af7ee2b423a9fc (patch)
treec1228a400e087d63fde79a6181f0b1406ee626c9 /arch/arm64/kernel/debug-monitors.c
parent333ed74689b8fca097574124fef7fa0e3d7f79d4 (diff)
downloadlinux-5311ebfb612f08ec2a712a86d0af7ee2b423a9fc.tar.gz
linux-5311ebfb612f08ec2a712a86d0af7ee2b423a9fc.tar.bz2
linux-5311ebfb612f08ec2a712a86d0af7ee2b423a9fc.zip
arm64: debug: mark a function as __init to save some memory
'debug_monitors_init()' is only called via 'postcore_initcall'. It can be marked as __init to save a few bytes of memory. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Douglas Anderson <dianders@chromium.org> Link: https://lore.kernel.org/r/20200531110015.598607-1-christophe.jaillet@wanadoo.fr Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/debug-monitors.c')
-rw-r--r--arch/arm64/kernel/debug-monitors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/debug-monitors.c b/arch/arm64/kernel/debug-monitors.c
index 15e80c876d46..5df49366e9ab 100644
--- a/arch/arm64/kernel/debug-monitors.c
+++ b/arch/arm64/kernel/debug-monitors.c
@@ -130,7 +130,7 @@ static int clear_os_lock(unsigned int cpu)
return 0;
}
-static int debug_monitors_init(void)
+static int __init debug_monitors_init(void)
{
return cpuhp_setup_state(CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING,
"arm64/debug_monitors:starting",