Skip to content

Commit 0d989da

Browse files
tititiou36gregkh
authored andcommitted
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: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 55c7549 commit 0d989da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static int topology_remove_dev(unsigned int cpu)
133133
return 0;
134134
}
135135

136-
static int topology_sysfs_init(void)
136+
static int __init topology_sysfs_init(void)
137137
{
138138
return cpuhp_setup_state(CPUHP_TOPOLOGY_PREPARE,
139139
"base/topology:prepare", topology_add_dev,

0 commit comments

Comments
 (0)