diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-10-16 04:26:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:03 -0400 |
commit | e2fc88d0643ca68f2011e6db4aa31e22bd94210c (patch) | |
tree | 0865518013da9b0209a3c1c55111b46cb789b712 /mm | |
parent | dbcb0f19c877df9026b8c1227758d38bd561e9c4 (diff) |
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: Adrian Bunk <bunk@stusta.de>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmstat.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index 2f19e4f867c1..3b5e9043e7db 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -353,23 +353,6 @@ void refresh_cpu_vm_stats(int cpu) | |||
353 | } | 353 | } |
354 | } | 354 | } |
355 | 355 | ||
356 | static void __refresh_cpu_vm_stats(void *dummy) | ||
357 | { | ||
358 | refresh_cpu_vm_stats(smp_processor_id()); | ||
359 | } | ||
360 | |||
361 | /* | ||
362 | * Consolidate all counters. | ||
363 | * | ||
364 | * Note that the result is less inaccurate but still inaccurate | ||
365 | * if concurrent processes are allowed to run. | ||
366 | */ | ||
367 | void refresh_vm_stats(void) | ||
368 | { | ||
369 | on_each_cpu(__refresh_cpu_vm_stats, NULL, 0, 1); | ||
370 | } | ||
371 | EXPORT_SYMBOL(refresh_vm_stats); | ||
372 | |||
373 | #endif | 356 | #endif |
374 | 357 | ||
375 | #ifdef CONFIG_NUMA | 358 | #ifdef CONFIG_NUMA |
@@ -865,7 +848,7 @@ static int __cpuinit vmstat_cpuup_callback(struct notifier_block *nfb, | |||
865 | static struct notifier_block __cpuinitdata vmstat_notifier = | 848 | static struct notifier_block __cpuinitdata vmstat_notifier = |
866 | { &vmstat_cpuup_callback, NULL, 0 }; | 849 | { &vmstat_cpuup_callback, NULL, 0 }; |
867 | 850 | ||
868 | int __init setup_vmstat(void) | 851 | static int __init setup_vmstat(void) |
869 | { | 852 | { |
870 | int cpu; | 853 | int cpu; |
871 | 854 | ||