Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1219093

[RFC PATCH 3/3] arm64: Reduce kernel stack size when using IRQ stack

From Jungseok Lee <jungseoklee85@gmail.com>
Newsgroups linux.kernel
Subject [RFC PATCH 3/3] arm64: Reduce kernel stack size when using IRQ stack
Date 2015-09-04 16:30 +0200
Message-ID <q50a7-4GT-23@gated-at.bofh.it> (permalink)
References <q50a6-4GT-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


It is a principal objective of IRQ stack feature to reduce kernel
stack size. Therefore, the size is set to 8KB when a separate IRQ
stack is active.

Signed-off-by: Jungseok Lee <jungseoklee85@gmail.com>
---
 arch/arm64/include/asm/thread_info.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/include/asm/thread_info.h b/arch/arm64/include/asm/thread_info.h
index 5345a67..e79210d 100644
--- a/arch/arm64/include/asm/thread_info.h
+++ b/arch/arm64/include/asm/thread_info.h
@@ -24,10 +24,18 @@
 #include <linux/compiler.h>
 
 #ifndef CONFIG_ARM64_64K_PAGES
+#ifdef CONFIG_IRQ_STACK
+#define THREAD_SIZE_ORDER	1
+#else
 #define THREAD_SIZE_ORDER	2
 #endif
+#endif
 
+#ifdef CONFIG_IRQ_STACK
+#define THREAD_SIZE		8192
+#else
 #define THREAD_SIZE		16384
+#endif
 #define THREAD_START_SP		(THREAD_SIZE - 16)
 
 #ifndef __ASSEMBLY__
-- 
1.9.1

--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[RFC PATCH 0/3] Implement IRQ stack on ARM64 Jungseok Lee <jungseoklee85@gmail.com> - 2015-09-04 16:30 +0200
  [RFC PATCH 3/3] arm64: Reduce kernel stack size when using IRQ stack Jungseok Lee <jungseoklee85@gmail.com> - 2015-09-04 16:30 +0200

csiph-web