linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: Change kernel stack size to 16K.
@ 2013-07-23 17:52 Feng Kan
  2013-07-24 11:41 ` Catalin Marinas
  0 siblings, 1 reply; 2+ messages in thread
From: Feng Kan @ 2013-07-23 17:52 UTC (permalink / raw)
  To: linux-arm-kernel

Written by Catalin Marinas, tested by APM on storm platform. This is needed 
because of the failures encountered when running SpecWeb benchmark test.

Signed-off-by: Feng Kan <fkan@apm.com>
Acked-by: Kumar Sankaran <ksankaran@apm.com>
---
 arch/arm64/include/asm/thread_info.h |    4 ++--
 arch/arm64/kernel/entry.S            |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/include/asm/thread_info.h b/arch/arm64/include/asm/thread_info.h
index 3659e46..23a3c47 100644
--- a/arch/arm64/include/asm/thread_info.h
+++ b/arch/arm64/include/asm/thread_info.h
@@ -24,10 +24,10 @@
 #include <linux/compiler.h>
 
 #ifndef CONFIG_ARM64_64K_PAGES
-#define THREAD_SIZE_ORDER	1
+#define THREAD_SIZE_ORDER	2
 #endif
 
-#define THREAD_SIZE		8192
+#define THREAD_SIZE		16384
 #define THREAD_START_SP		(THREAD_SIZE - 16)
 
 #ifndef __ASSEMBLY__
diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S
index 1d13142..6ad781b 100644
--- a/arch/arm64/kernel/entry.S
+++ b/arch/arm64/kernel/entry.S
@@ -121,7 +121,7 @@
 
 	.macro	get_thread_info, rd
 	mov	\rd, sp
-	and	\rd, \rd, #~((1 << 13) - 1)	// top of 8K stack
+	and	\rd, \rd, #~(THREAD_SIZE - 1)	// top of stack
 	.endm
 
 /*
-- 
1.7.6.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] arm64: Change kernel stack size to 16K.
  2013-07-23 17:52 [PATCH] arm64: Change kernel stack size to 16K Feng Kan
@ 2013-07-24 11:41 ` Catalin Marinas
  0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2013-07-24 11:41 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jul 23, 2013 at 06:52:31PM +0100, Feng Kan wrote:
> Written by Catalin Marinas, tested by APM on storm platform. This is needed 
> because of the failures encountered when running SpecWeb benchmark test.
> 
> Signed-off-by: Feng Kan <fkan@apm.com>
> Acked-by: Kumar Sankaran <ksankaran@apm.com>

Thanks.

-- 
Catalin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-24 11:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-23 17:52 [PATCH] arm64: Change kernel stack size to 16K Feng Kan
2013-07-24 11:41 ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).