mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mm, mem-hotplug: update pcp->stat_threshold when memory hotplug occur
Currently, cpu hotplug updates pcp->stat_threshold, but memory hotplug doesn't. There is no reason for this. [[email protected]: fix CONFIG_SMP=n build] Signed-off-by: KOSAKI Motohiro <[email protected]> Reviewed-by: KAMEZAWA Hiroyuki <[email protected]> Acked-by: Mel Gorman <[email protected]> Acked-by: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1b79acc911
commit
a6cccdc36c
3 changed files with 6 additions and 2 deletions
|
|
@ -157,7 +157,7 @@ int calculate_normal_threshold(struct zone *zone)
|
|||
/*
|
||||
* Refresh the thresholds for each zone.
|
||||
*/
|
||||
static void refresh_zone_stat_thresholds(void)
|
||||
void refresh_zone_stat_thresholds(void)
|
||||
{
|
||||
struct zone *zone;
|
||||
int cpu;
|
||||
|
|
@ -1201,7 +1201,6 @@ static int __init setup_vmstat(void)
|
|||
#ifdef CONFIG_SMP
|
||||
int cpu;
|
||||
|
||||
refresh_zone_stat_thresholds();
|
||||
register_cpu_notifier(&vmstat_notifier);
|
||||
|
||||
for_each_online_cpu(cpu)
|
||||
|
|
|
|||
Loading…
Reference in a new issue