提交 3d97e426 编写于 作者: L Lin Ming 提交者: Len Brown

ACPI: main.c: use new public GPE group enable/disable interfaces

Avoid using internal functions: acpi_hw_disable_all_gpes and acpi_hw_enable_all_runtime_gpes
Use new public GPE group enable/disable interfaces: acpi_disable_all_gpes and acpi_enable_all_runtime_gpes

Also avoid using internal symbol ACPI_TABLE_INDEX_FACS, call acpi_get_table.
Signed-off-by: NLin Ming <ming.m.lin@intel.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 08ac07b8
...@@ -107,7 +107,7 @@ static bool set_sci_en_on_resume; ...@@ -107,7 +107,7 @@ static bool set_sci_en_on_resume;
*/ */
static int acpi_pm_disable_gpes(void) static int acpi_pm_disable_gpes(void)
{ {
acpi_hw_disable_all_gpes(); acpi_disable_all_gpes();
return 0; return 0;
} }
...@@ -135,7 +135,7 @@ static int acpi_pm_prepare(void) ...@@ -135,7 +135,7 @@ static int acpi_pm_prepare(void)
int error = __acpi_pm_prepare(); int error = __acpi_pm_prepare();
if (!error) if (!error)
acpi_hw_disable_all_gpes(); acpi_disable_all_gpes();
return error; return error;
} }
...@@ -267,7 +267,7 @@ static int acpi_suspend_enter(suspend_state_t pm_state) ...@@ -267,7 +267,7 @@ static int acpi_suspend_enter(suspend_state_t pm_state)
* (like wakeup GPE) haven't handler, this can avoid such GPE misfire. * (like wakeup GPE) haven't handler, this can avoid such GPE misfire.
* acpi_leave_sleep_state will reenable specific GPEs later * acpi_leave_sleep_state will reenable specific GPEs later
*/ */
acpi_hw_disable_all_gpes(); acpi_disable_all_gpes();
local_irq_restore(flags); local_irq_restore(flags);
printk(KERN_DEBUG "Back to C!\n"); printk(KERN_DEBUG "Back to C!\n");
...@@ -436,7 +436,7 @@ static void acpi_hibernation_leave(void) ...@@ -436,7 +436,7 @@ static void acpi_hibernation_leave(void)
static void acpi_pm_enable_gpes(void) static void acpi_pm_enable_gpes(void)
{ {
acpi_hw_enable_all_runtime_gpes(); acpi_enable_all_runtime_gpes();
} }
static struct platform_hibernation_ops acpi_hibernation_ops = { static struct platform_hibernation_ops acpi_hibernation_ops = {
...@@ -622,7 +622,7 @@ static void acpi_power_off_prepare(void) ...@@ -622,7 +622,7 @@ static void acpi_power_off_prepare(void)
{ {
/* Prepare to power off the system */ /* Prepare to power off the system */
acpi_sleep_prepare(ACPI_STATE_S5); acpi_sleep_prepare(ACPI_STATE_S5);
acpi_hw_disable_all_gpes(); acpi_disable_all_gpes();
} }
static void acpi_power_off(void) static void acpi_power_off(void)
...@@ -671,7 +671,7 @@ int __init acpi_sleep_init(void) ...@@ -671,7 +671,7 @@ int __init acpi_sleep_init(void)
sleep_states[ACPI_STATE_S4] = 1; sleep_states[ACPI_STATE_S4] = 1;
printk(" S4"); printk(" S4");
if (!nosigcheck) { if (!nosigcheck) {
acpi_get_table_by_index(ACPI_TABLE_INDEX_FACS, acpi_get_table(ACPI_SIG_FACS, 1,
(struct acpi_table_header **)&facs); (struct acpi_table_header **)&facs);
if (facs) if (facs)
s4_hardware_signature = s4_hardware_signature =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册