Skip to content

Commit bdf780f

Browse files
LiHuiSong1rafaeljw
authored andcommitted
ACPI: processor: idle: Rearrange declarations in header file
Group all of the declarations of functions that belong to the ACPI processor idle driver together in one place in processor.h. While at it, drop the unnecessary extern modifier from the declaraions of two functions. Signed-off-by: Huisong Li <lihuisong@huawei.com> Link: https://patch.msgid.link/20250911112408.1668431-3-lihuisong@huawei.com [ rjw: Subject and changelog rewrite ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 5020d05 commit bdf780f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

include/acpi/processor.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ int acpi_processor_power_state_has_changed(struct acpi_processor *pr);
425425
int acpi_processor_hotplug(struct acpi_processor *pr);
426426
void acpi_processor_register_idle_driver(void);
427427
void acpi_processor_unregister_idle_driver(void);
428+
int acpi_processor_ffh_lpi_probe(unsigned int cpu);
429+
int acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi);
428430
#endif /* CONFIG_ACPI_PROCESSOR_IDLE */
429431

430432
/* in processor_thermal.c */
@@ -447,11 +449,6 @@ static inline void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy)
447449
}
448450
#endif /* CONFIG_CPU_FREQ */
449451

450-
#ifdef CONFIG_ACPI_PROCESSOR_IDLE
451-
extern int acpi_processor_ffh_lpi_probe(unsigned int cpu);
452-
extern int acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi);
453-
#endif
454-
455452
void acpi_processor_init_invariance_cppc(void);
456453

457454
#endif

0 commit comments

Comments
 (0)