diff options
| author | Rafael J. Wysocki <[email protected]> | 2025-06-05 15:04:11 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-06-06 15:49:39 +0000 |
| commit | c0f691388992c708436ab5f6e810865be6ddf5c6 (patch) | |
| tree | a132faf8082c8d368b3a32d11cb98337b0df4751 | |
| parent | Merge tag 'pm-6.16-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/ra... (diff) | |
| download | kernel-c0f691388992c708436ab5f6e810865be6ddf5c6.tar.gz kernel-c0f691388992c708436ab5f6e810865be6ddf5c6.zip | |
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]
| -rw-r--r-- | drivers/idle/intel_idle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index 8ccb483204fa..64ac4da08094 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -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 |
