[PATCH] 80911: Debug patch to skip _WAK in platform pm_test mode
From: Zhang Rui
Date: Sun Aug 17 2014 - 21:09:07 EST
---
kernel/power/suspend.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
index 6dadb25..402f0ca 100644
--- a/kernel/power/suspend.c
+++ b/kernel/power/suspend.c
@@ -270,11 +270,12 @@ static int suspend_enter(suspend_state_t state, bool *wakeup)
printk(KERN_ERR "PM: Some devices failed to power down\n");
goto Platform_finish;
}
- error = platform_suspend_prepare_late(state);
- if (error)
- goto Platform_wake;
if (suspend_test(TEST_PLATFORM))
+ goto Platform_test;
+
+ error = platform_suspend_prepare_late(state);
+ if (error)
goto Platform_wake;
/*
@@ -319,8 +320,8 @@ static int suspend_enter(suspend_state_t state, bool *wakeup)
Platform_wake:
platform_suspend_wake(state);
+ Platform_test:
dpm_resume_start(PMSG_RESUME);
-
Platform_finish:
platform_suspend_finish(state);
return error;
--
1.8.3.2
--=-EGBPE3aieT5ZYPzOrZ55--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/