[PATCH] s390: z/VM monitor stream.
From: Gerald Schaefer <[email protected]>
z/VM monitor stream changes:
- Reduce stack usage of appldata_get_mem_data.
Signed-off-by: Martin Schwidefsky <[email protected]>
diffstat:
arch/s390/appldata/appldata_mem.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff -urN linux-2.6/arch/s390/appldata/appldata_mem.c linux-2.6-patched/arch/s390/appldata/appldata_mem.c
--- linux-2.6/arch/s390/appldata/appldata_mem.c 2004-08-14 12:54:50.000000000 +0200
+++ linux-2.6-patched/arch/s390/appldata/appldata_mem.c 2004-10-08 19:19:11.000000000 +0200
@@ -102,8 +102,12 @@
*/
static void appldata_get_mem_data(void *data)
{
- struct sysinfo val;
- struct page_state ps;
+ /*
+ * don't put large structures on the stack, we are
+ * serialized through the appldata_ops_lock and can use static
+ */
+ static struct sysinfo val;
+ static struct page_state ps;
struct appldata_mem_data *mem_data;
mem_data = data;