diff options
-rw-r--r-- | mm/vmscan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 8fd8ba1c67b4..cb8ad3c6e483 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1694,9 +1694,11 @@ static int __devinit cpu_callback(struct notifier_block *nfb, | |||
1694 | { | 1694 | { |
1695 | pg_data_t *pgdat; | 1695 | pg_data_t *pgdat; |
1696 | cpumask_t mask; | 1696 | cpumask_t mask; |
1697 | int nid; | ||
1697 | 1698 | ||
1698 | if (action == CPU_ONLINE || action == CPU_ONLINE_FROZEN) { | 1699 | if (action == CPU_ONLINE || action == CPU_ONLINE_FROZEN) { |
1699 | for_each_online_pgdat(pgdat) { | 1700 | for_each_node_state(nid, N_HIGH_MEMORY) { |
1701 | pgdat = NODE_DATA(nid); | ||
1700 | mask = node_to_cpumask(pgdat->node_id); | 1702 | mask = node_to_cpumask(pgdat->node_id); |
1701 | if (any_online_cpu(mask) != NR_CPUS) | 1703 | if (any_online_cpu(mask) != NR_CPUS) |
1702 | /* One of our CPUs online: restore mask */ | 1704 | /* One of our CPUs online: restore mask */ |