Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2fc88d0 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

mm/vmstat.c: cleanups



This patch contains the following cleanups:
- make the needlessly global setup_vmstat() static
- remove the unused refresh_vm_stats()

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Acked-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent dbcb0f19
Loading
Loading
Loading
Loading
+1 −18
Original line number Original line Diff line number Diff line
@@ -353,23 +353,6 @@ void refresh_cpu_vm_stats(int cpu)
	}
	}
}
}


static void __refresh_cpu_vm_stats(void *dummy)
{
	refresh_cpu_vm_stats(smp_processor_id());
}

/*
 * Consolidate all counters.
 *
 * Note that the result is less inaccurate but still inaccurate
 * if concurrent processes are allowed to run.
 */
void refresh_vm_stats(void)
{
	on_each_cpu(__refresh_cpu_vm_stats, NULL, 0, 1);
}
EXPORT_SYMBOL(refresh_vm_stats);

#endif
#endif


#ifdef CONFIG_NUMA
#ifdef CONFIG_NUMA
@@ -865,7 +848,7 @@ static int __cpuinit vmstat_cpuup_callback(struct notifier_block *nfb,
static struct notifier_block __cpuinitdata vmstat_notifier =
static struct notifier_block __cpuinitdata vmstat_notifier =
	{ &vmstat_cpuup_callback, NULL, 0 };
	{ &vmstat_cpuup_callback, NULL, 0 };


int __init setup_vmstat(void)
static int __init setup_vmstat(void)
{
{
	int cpu;
	int cpu;