diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmstat.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index 25e5ca7c1743..06a6d1052198 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -52,20 +52,6 @@ void get_full_page_state(struct page_state *ret) | |||
52 | __get_page_state(ret, sizeof(*ret) / sizeof(unsigned long), &mask); | 52 | __get_page_state(ret, sizeof(*ret) / sizeof(unsigned long), &mask); |
53 | } | 53 | } |
54 | 54 | ||
55 | unsigned long read_page_state_offset(unsigned long offset) | ||
56 | { | ||
57 | unsigned long ret = 0; | ||
58 | int cpu; | ||
59 | |||
60 | for_each_online_cpu(cpu) { | ||
61 | unsigned long in; | ||
62 | |||
63 | in = (unsigned long)&per_cpu(page_states, cpu) + offset; | ||
64 | ret += *((unsigned long *)in); | ||
65 | } | ||
66 | return ret; | ||
67 | } | ||
68 | |||
69 | void __mod_page_state_offset(unsigned long offset, unsigned long delta) | 55 | void __mod_page_state_offset(unsigned long offset, unsigned long delta) |
70 | { | 56 | { |
71 | void *ptr; | 57 | void *ptr; |