Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1432607
| From | Lv Zheng <lv.zheng@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC PATCH 3/3] ACPI / PM: Fix EC polling issue by implementing prepare_late/finish_early suspend_ops callbacks |
| Date | 2016-06-28 10:10 +0200 |
| Message-ID | <rOWfM-4gQ-23@gated-at.bofh.it> (permalink) |
| References | <rOWfL-4gQ-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
_PTS/_WAK may contain EC transactions, it is better to have them handled
with IRQ enabled. This patch moves the 2 suspend PM ops from noirq stage
to late/early stage.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
---
drivers/acpi/sleep.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index d30fce7f..c5c374c9 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -595,9 +595,10 @@ static int acpi_suspend_state_valid(suspend_state_t pm_state)
static const struct platform_suspend_ops acpi_suspend_ops = {
.valid = acpi_suspend_state_valid,
.begin = acpi_suspend_begin,
- .prepare_noirq = acpi_pm_prepare,
+ .prepare_late = __acpi_pm_prepare,
+ .prepare_noirq = acpi_pm_pre_suspend,
.enter = acpi_suspend_enter,
- .finish_noirq = acpi_pm_finish,
+ .finish_early = acpi_pm_finish,
.end = acpi_pm_end,
};
--
1.7.10
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[RFC PATCH 3/3] ACPI / PM: Fix EC polling issue by implementing prepare_late/finish_early suspend_ops callbacks Lv Zheng <lv.zheng@intel.com> - 2016-06-28 10:10 +0200
csiph-web