Commit 8a61b544 authored by Zhang Zekun's avatar Zhang Zekun Committed by Zhong Jinghua
Browse files

ACPI: OSL: Export the symbol of acpi_hotplug_schedule

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I67QNJ


CVE: NA

---------------------------------------

This patch export the symbol of acpi_hotplug_schedule, and
move the declaration of the acpi_hotplug_schedule in
drivers/acpi/internal.h to include/linux/acpi.h. Drivers
can use this function to online/offline the memory devices.

Signed-off-by: default avatarZhang Zekun <zhangzekun11@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
parent 02d13a76
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -82,7 +82,6 @@ static inline void acpi_lpss_init(void) {}

void acpi_apd_init(void);

acpi_status acpi_hotplug_schedule(struct acpi_device *adev, u32 src);
bool acpi_queue_hotplug_work(struct work_struct *work);
void acpi_device_hotplug(struct acpi_device *adev, u32 src);
bool acpi_scan_is_offline(struct acpi_device *adev, bool uevent);
+1 −0
Original line number Diff line number Diff line
@@ -1188,6 +1188,7 @@ acpi_status acpi_hotplug_schedule(struct acpi_device *adev, u32 src)
	}
	return AE_OK;
}
EXPORT_SYMBOL_GPL(acpi_hotplug_schedule);

bool acpi_queue_hotplug_work(struct work_struct *work)
{
+1 −0
Original line number Diff line number Diff line
@@ -1407,5 +1407,6 @@ acpi_platform_notify(struct device *dev, enum kobject_action action)
struct acpi_pptt_processor *
acpi_pptt_find_cache_backwards(struct acpi_table_header *table_hdr,
			       struct acpi_pptt_cache *cache);
acpi_status acpi_hotplug_schedule(struct acpi_device *adev, u32 src);

#endif	/*_LINUX_ACPI_H*/