lkml.org 
[lkml]   [2004]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] s390 (4/12): z/VM monitor stream.
[PATCH] s390: z/VM monitor stream.

From: Gerald Schaefer <geraldsc@de.ibm.com>

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

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.381 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site