Skip to content

Commit

Permalink
mm/vmstat.c: cleanups
Browse files Browse the repository at this point in the history
This patch contains the following cleanups:
- make the needlessly global setup_vmstat() static
- remove the unused refresh_vm_stats()

Signed-off-by: Adrian Bunk <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AdrianBunk authored and Linus Torvalds committed Oct 16, 2007
1 parent dbcb0f1 commit e2fc88d
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions mm/vmstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

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

Expand Down

0 comments on commit e2fc88d

Please sign in to comment.