aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/appldata/appldata_base.c1
-rw-r--r--arch/s390/appldata/appldata_mem.c23
2 files changed, 12 insertions, 12 deletions
diff --git a/arch/s390/appldata/appldata_base.c b/arch/s390/appldata/appldata_base.c
index 8937318411aa..d0f82c995af6 100644
--- a/arch/s390/appldata/appldata_base.c
+++ b/arch/s390/appldata/appldata_base.c
@@ -765,7 +765,6 @@ unsigned long nr_iowait(void)
765#endif /* MODULE */ 765#endif /* MODULE */
766EXPORT_SYMBOL_GPL(si_swapinfo); 766EXPORT_SYMBOL_GPL(si_swapinfo);
767EXPORT_SYMBOL_GPL(nr_threads); 767EXPORT_SYMBOL_GPL(nr_threads);
768EXPORT_SYMBOL_GPL(get_full_page_state);
769EXPORT_SYMBOL_GPL(nr_running); 768EXPORT_SYMBOL_GPL(nr_running);
770EXPORT_SYMBOL_GPL(nr_iowait); 769EXPORT_SYMBOL_GPL(nr_iowait);
771//EXPORT_SYMBOL_GPL(nr_context_switches); 770//EXPORT_SYMBOL_GPL(nr_context_switches);
diff --git a/arch/s390/appldata/appldata_mem.c b/arch/s390/appldata/appldata_mem.c
index 7165c8f8d3dc..ab3b0765a64e 100644
--- a/arch/s390/appldata/appldata_mem.c
+++ b/arch/s390/appldata/appldata_mem.c
@@ -106,21 +106,21 @@ static void appldata_get_mem_data(void *data)
106 * serialized through the appldata_ops_lock and can use static 106 * serialized through the appldata_ops_lock and can use static
107 */ 107 */
108 static struct sysinfo val; 108 static struct sysinfo val;
109 static struct page_state ps; 109 unsigned long ev[NR_VM_EVENT_ITEMS];
110 struct appldata_mem_data *mem_data; 110 struct appldata_mem_data *mem_data;
111 111
112 mem_data = data; 112 mem_data = data;
113 mem_data->sync_count_1++; 113 mem_data->sync_count_1++;
114 114
115 get_full_page_state(&ps); 115 all_vm_events(ev);
116 mem_data->pgpgin = ps.pgpgin >> 1; 116 mem_data->pgpgin = ev[PGPGIN] >> 1;
117 mem_data->pgpgout = ps.pgpgout >> 1; 117 mem_data->pgpgout = ev[PGPGOUT] >> 1;
118 mem_data->pswpin = ps.pswpin; 118 mem_data->pswpin = ev[PSWPIN];
119 mem_data->pswpout = ps.pswpout; 119 mem_data->pswpout = ev[PSWPOUT];
120 mem_data->pgalloc = ps.pgalloc_high + ps.pgalloc_normal + 120 mem_data->pgalloc = ev[PGALLOC_HIGH] + ev[PGALLOC_NORMAL] +
121 ps.pgalloc_dma; 121 ev[PGALLOC_DMA];
122 mem_data->pgfault = ps.pgfault; 122 mem_data->pgfault = ev[PGFAULT];
123 mem_data->pgmajfault = ps.pgmajfault; 123 mem_data->pgmajfault = ev[PGMAJFAULT];
124 124
125 si_meminfo(&val); 125 si_meminfo(&val);
126 mem_data->sharedram = val.sharedram; 126 mem_data->sharedram = val.sharedram;
@@ -129,7 +129,8 @@ static void appldata_get_mem_data(void *data)
129 mem_data->totalhigh = P2K(val.totalhigh); 129 mem_data->totalhigh = P2K(val.totalhigh);
130 mem_data->freehigh = P2K(val.freehigh); 130 mem_data->freehigh = P2K(val.freehigh);
131 mem_data->bufferram = P2K(val.bufferram); 131 mem_data->bufferram = P2K(val.bufferram);
132 mem_data->cached = P2K(atomic_read(&nr_pagecache) - val.bufferram); 132 mem_data->cached = P2K(global_page_state(NR_FILE_PAGES)
133 - val.bufferram);
133 134
134 si_swapinfo(&val); 135 si_swapinfo(&val);
135 mem_data->totalswap = P2K(val.totalswap); 136 mem_data->totalswap = P2K(val.totalswap);