[PATCH] s390 (4/12): z/VM monitor stream.

From: Martin Schwidefsky
Date: Fri Oct 08 2004 - 12:48:13 EST


[PATCH] s390: z/VM monitor stream.

From: Gerald Schaefer <geraldsc@xxxxxxxxxx>

z/VM monitor stream changes:
- Reduce stack usage of appldata_get_mem_data.

Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>

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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/