Skip to content

Commit

Permalink
arm64: debug: mark a function as __init to save some memory
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Christophe JAILLET authored and Will Deacon committed Jun 4, 2020
1 parent 333ed74 commit 5311ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/kernel/debug-monitors.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5311ebf

Please sign in to comment.