All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] riscv: reduce THREAD_SIZE from 16KB to 8KB for RV64
@ 2022-02-06 17:43 ` Jisheng Zhang
  0 siblings, 0 replies; 14+ messages in thread
From: Jisheng Zhang @ 2022-02-06 17:43 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou; +Cc: linux-riscv, linux-kernel

After irq stack is supported, it's possible to use small THREAD_SIZE.
In fact, I tested this patch on a Lichee RV board, looks good so far.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
---
 arch/riscv/include/asm/thread_info.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/riscv/include/asm/thread_info.h b/arch/riscv/include/asm/thread_info.h
index 67387a8bcb34..fdbf3890a1ab 100644
--- a/arch/riscv/include/asm/thread_info.h
+++ b/arch/riscv/include/asm/thread_info.h
@@ -12,11 +12,7 @@
 #include <linux/const.h>
 
 /* thread information allocation */
-#ifdef CONFIG_64BIT
-#define THREAD_SIZE_ORDER	(2)
-#else
 #define THREAD_SIZE_ORDER	(1)
-#endif
 #define THREAD_SIZE		(PAGE_SIZE << THREAD_SIZE_ORDER)
 
 #define IRQ_STACK_SIZE		THREAD_SIZE
-- 
2.34.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

end of thread, other threads:[~2022-02-07 16:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-06 17:43 [RFC PATCH] riscv: reduce THREAD_SIZE from 16KB to 8KB for RV64 Jisheng Zhang
2022-02-06 17:43 ` Jisheng Zhang
2022-02-07  3:35 ` David Laight
2022-02-07  3:35   ` David Laight
2022-02-07  7:35 ` Arnd Bergmann
2022-02-07  7:35   ` Arnd Bergmann
2022-02-07 15:27   ` Jisheng Zhang
2022-02-07 15:27     ` Jisheng Zhang
2022-02-07  8:05 ` David Abdurachmanov
2022-02-07  8:05   ` David Abdurachmanov
2022-02-07  8:38   ` Andreas Schwab
2022-02-07  8:38     ` Andreas Schwab
2022-02-07  9:07     ` Arnd Bergmann
2022-02-07  9:07       ` Arnd Bergmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.