Commit 0d989da3 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Greg Kroah-Hartman

topology: mark a function as __init to save some memory

'topology_sysfs_init()' is only called via 'device_initcall'.
It can be marked as __init to save a few bytes of memory.
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20200621081106.881915-1-christophe.jaillet@wanadoo.frSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 55c75498
......@@ -133,7 +133,7 @@ static int topology_remove_dev(unsigned int cpu)
return 0;
}
static int topology_sysfs_init(void)
static int __init topology_sysfs_init(void)
{
return cpuhp_setup_state(CPUHP_TOPOLOGY_PREPARE,
"base/topology:prepare", topology_add_dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment