]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rcu: Expedite during suspend and resume only on smallish systems
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 22 Apr 2013 22:02:14 +0000 (15:02 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 27 May 2013 11:59:16 +0000 (04:59 -0700)
Expedited grace periods are of dubious benefit on very large systems,
so this commit restricts their automated use during suspend and resume
to systems of 256 or fewer CPUs.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c

index 45971118b4450e317e0e958a2be8772c4e7c7d9a..00d4de0102f724d6c1993c84ac301ff87e78d2cf 100644 (file)
@@ -3009,7 +3009,8 @@ static int rcu_pm_notify(struct notifier_block *self,
 {
        switch (action) {
        case PM_HIBERNATION_PREPARE:
-               rcu_expedited = 1;
+               if (nr_cpu_ids <= 256) /* Expediting bad for large systems. */
+                       rcu_expedited = 1;
                break;
        case PM_POST_RESTORE:
                rcu_expedited = 0;