mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 21:02:43 +01:00
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]
This commit is contained in:
1 parent
e271ed52b3
commit
c0f6913889
1 file changed
+1
-1
@@ -2518,7 +2518,7 @@ init_driver_fail:
|
||||
return retval;
|
||||
|
||||
}
|
||||
device_initcall(intel_idle_init);
|
||||
subsys_initcall_sync(intel_idle_init);
|
||||
|
||||
/*
|
||||
* We are not really modular, but we used to support that. Meaning we also
|
||||
|
||||
Reference in new issue
Block a user