mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] zoned-vm-counters: remove read_page_state()
No callers. Cc: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c24f21bda8
commit
bab1846a05
2 changed files with 0 additions and 18 deletions
14
mm/vmstat.c
14
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue