summaryrefslogtreecommitdiffstats
path: root/mm/vmstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r--mm/vmstat.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 25e5ca7..06a6d10 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -52,20 +52,6 @@ void get_full_page_state(struct page_state *ret)
__get_page_state(ret, sizeof(*ret) / sizeof(unsigned long), &mask);
}
-unsigned long read_page_state_offset(unsigned long offset)
-{
- unsigned long ret = 0;
- int cpu;
-
- for_each_online_cpu(cpu) {
- unsigned long in;
-
- in = (unsigned long)&per_cpu(page_states, cpu) + offset;
- ret += *((unsigned long *)in);
- }
- return ret;
-}
-
void __mod_page_state_offset(unsigned long offset, unsigned long delta)
{
void *ptr;
OpenPOWER on IntegriCloud