[PATCH] x86: trim ACPI sleep stack buffer

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matt Mackall
Date: Thursday, October 9, 2008 - 9:56 am

On Thu, 2008-10-09 at 10:56 +0200, Pavel Machek wrote:

I've already got a patch, I was just wondering if there was some obscure
architectural reason for it that I wasn't aware of.


x86: trim ACPI sleep stack buffer

x86_64 SMP suspend to RAM uses a 10k temporary stack for saving the
kernel state, but only 4k of it is used. Shrink it to 4k.

Signed-off-by: Matt Mackall <mpm@selenic.com>

diff -r 73d55a1b6c10 arch/x86/kernel/acpi/sleep.c
--- a/arch/x86/kernel/acpi/sleep.c	Wed Oct 08 14:48:45 2008 -0500
+++ b/arch/x86/kernel/acpi/sleep.c	Thu Oct 09 11:51:54 2008 -0500
@@ -21,7 +21,7 @@
 static unsigned long acpi_realmode;
 
 #if defined(CONFIG_SMP) && defined(CONFIG_64BIT)
-static char temp_stack[10240];
+static char temp_stack[4096];
 #endif
 
 /**

-- 
Mathematics is the supreme nostalgia of our time.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Why is arch/x86/kernel/acpi/sleep.c:temp_stack 10k?, Matt Mackall, (Tue Sep 30, 5:12 pm)
[PATCH] x86: trim ACPI sleep stack buffer, Matt Mackall, (Thu Oct 9, 9:56 am)
Re: [PATCH] x86: trim ACPI sleep stack buffer, Len Brown, (Thu Oct 9, 10:19 am)
RE: [PATCH] x86: trim ACPI sleep stack buffer, Moore, Robert, (Thu Oct 9, 10:23 am)
RE: [PATCH] x86: trim ACPI sleep stack buffer, Matt Mackall, (Thu Oct 9, 10:41 am)
Re: [PATCH] x86: trim ACPI sleep stack buffer, Pavel Machek, (Thu Oct 9, 11:07 am)
Re: [PATCH] x86: trim ACPI sleep stack buffer, Len Brown, (Thu Oct 9, 11:35 am)
Re: [PATCH] x86: trim ACPI sleep stack buffer, Rafael J. Wysocki, (Thu Oct 9, 2:25 pm)