Skip to content

Commit c0f6913

Browse files
committed
intel_idle: Use subsys_initcall_sync() for initialization
It is not necessary to wait until the device_initcall() stage with intel_idle initialization. All of its dependencies are met after all subsys_initcall()s have run, so subsys_initcall_sync() can be used for initializing it. It is also better to ensure that intel_idle will always initialize before the ACPI processor driver that uses module_init() for its initialization. Signed-off-by: Rafael J. Wysocki <[email protected]> Tested-by: Artem Bityutskiy <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent e271ed5 commit c0f6913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/idle/intel_idle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2518,7 +2518,7 @@ static int __init intel_idle_init(void)
25182518
return retval;
25192519

25202520
}
2521-
device_initcall(intel_idle_init);
2521+
subsys_initcall_sync(intel_idle_init);
25222522

25232523
/*
25242524
* We are not really modular, but we used to support that. Meaning we also

0 commit comments

Comments
 (0)