mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] s390 (4/12): z/VM monitor stream.
@ 2004-10-08 17:37 Martin Schwidefsky
  0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2004-10-08 17:37 UTC (permalink / raw)
  To: akpm, linux-kernel

[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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-08 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-08 17:37 [PATCH] s390 (4/12): z/VM monitor stream Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®