Skip to content

Commit 5311ebf

Browse files
tititiou36willdeacon
authored andcommitted
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 <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 333ed74 commit 5311ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/debug-monitors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static int clear_os_lock(unsigned int cpu)
130130
return 0;
131131
}
132132

133-
static int debug_monitors_init(void)
133+
static int __init debug_monitors_init(void)
134134
{
135135
return cpuhp_setup_state(CPUHP_AP_ARM64_DEBUG_MONITORS_STARTING,
136136
"arm64/debug_monitors:starting",

0 commit comments

Comments
 (0)