提交 8a61b544 编写于 作者: Z Zhang Zekun 提交者: Zhong Jinghua

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: NZhang Zekun <zhangzekun11@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
上级 02d13a76
......@@ -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);
......
......@@ -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)
{
......
......@@ -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*/
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册