projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ab04d5
)
vmstat: update zone stat threshold when onlining a cpu
author
KAMEZAWA Hiroyuki
<
[email protected]
>
Thu, 9 Sep 2010 23:38:14 +0000
(16:38 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 10 Sep 2010 01:57:25 +0000
(18:57 -0700)
refresh_zone_stat_thresholds() calculates parameter based on the number of
online cpus. It's called at cpu offlining but needs to be called at
onlining, too.
Signed-off-by: KAMEZAWA Hiroyuki <
[email protected]
>
Cc: Christoph Lameter <
[email protected]
>
Acked-by: Mel Gorman <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/vmstat.c
patch
|
blob
|
history
diff --git
a/mm/vmstat.c
b/mm/vmstat.c
index f389168f9a837b9c6be4e1f9bb3d0892396315de..a8d6b59e609a390d6e5d33c4560d1cb3a47814b8 100644
(file)
--- a/
mm/vmstat.c
+++ b/
mm/vmstat.c
@@
-998,6
+998,7
@@
static int __cpuinit vmstat_cpuup_callback(struct notifier_block *nfb,
switch (action) {
case CPU_ONLINE:
case CPU_ONLINE_FROZEN:
+ refresh_zone_stat_thresholds();
start_cpu_timer(cpu);
node_set_state(cpu_to_node(cpu), N_CPU);
break;