[PATCH] rcu: Really switch to expedited grace periods for suspend

From: =3D?UTF-8?q?Bj=3DC3=3DB8rn=3D20Mork?=3D
Date: Sun May 12 2013 - 11:51:10 EST


commit 587ff2cf ("rcu: Expedite grace periods during suspend/resume")
enabled expedited grace periods for hibernation, but not for suspend.
The same issue applies to both cases, so apply the same logic.

Restoring on post hibernation and post suspend, but not on post
restore, which only applies to the restore error case.

Cc: Borislav Petkov <bp@xxxxxxx>
Signed-off-by: Bj=C3=B8rn Mork <bjorn@xxxxxxx>
---
kernel/rcutree.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index 6934238..2dcbf84 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -3103,9 +3103,11 @@ static int rcu_pm_notify(struct notifier_block *self,
{
switch (action) {
case PM_HIBERNATION_PREPARE:
+ case PM_SUSPEND_PREPARE:
rcu_expedited =3D 1;
break;
- case PM_POST_RESTORE:
+ case PM_POST_HIBERNATION:
+ case PM_POST_SUSPEND:
rcu_expedited =3D 0;
break;
default:
--=20
1.7.10.4


--=-=-=--
--
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/