diff options
Diffstat (limited to 'arch/s390/appldata/appldata_mem.c')
-rw-r--r-- | arch/s390/appldata/appldata_mem.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/s390/appldata/appldata_mem.c b/arch/s390/appldata/appldata_mem.c index 180ba79a6267..4811e2dac864 100644 --- a/arch/s390/appldata/appldata_mem.c +++ b/arch/s390/appldata/appldata_mem.c | |||
@@ -107,21 +107,21 @@ static void appldata_get_mem_data(void *data) | |||
107 | * serialized through the appldata_ops_lock and can use static | 107 | * serialized through the appldata_ops_lock and can use static |
108 | */ | 108 | */ |
109 | static struct sysinfo val; | 109 | static struct sysinfo val; |
110 | static struct page_state ps; | 110 | unsigned long ev[NR_VM_EVENT_ITEMS]; |
111 | struct appldata_mem_data *mem_data; | 111 | struct appldata_mem_data *mem_data; |
112 | 112 | ||
113 | mem_data = data; | 113 | mem_data = data; |
114 | mem_data->sync_count_1++; | 114 | mem_data->sync_count_1++; |
115 | 115 | ||
116 | get_full_page_state(&ps); | 116 | all_vm_events(ev); |
117 | mem_data->pgpgin = ps.pgpgin >> 1; | 117 | mem_data->pgpgin = ev[PGPGIN] >> 1; |
118 | mem_data->pgpgout = ps.pgpgout >> 1; | 118 | mem_data->pgpgout = ev[PGPGOUT] >> 1; |
119 | mem_data->pswpin = ps.pswpin; | 119 | mem_data->pswpin = ev[PSWPIN]; |
120 | mem_data->pswpout = ps.pswpout; | 120 | mem_data->pswpout = ev[PSWPOUT]; |
121 | mem_data->pgalloc = ps.pgalloc_high + ps.pgalloc_normal + | 121 | mem_data->pgalloc = ev[PGALLOC_HIGH] + ev[PGALLOC_NORMAL] + |
122 | ps.pgalloc_dma; | 122 | ev[PGALLOC_DMA]; |
123 | mem_data->pgfault = ps.pgfault; | 123 | mem_data->pgfault = ev[PGFAULT]; |
124 | mem_data->pgmajfault = ps.pgmajfault; | 124 | mem_data->pgmajfault = ev[PGMAJFAULT]; |
125 | 125 | ||
126 | si_meminfo(&val); | 126 | si_meminfo(&val); |
127 | mem_data->sharedram = val.sharedram; | 127 | mem_data->sharedram = val.sharedram; |