diff options
author | John David Anglin <dave.anglin@bell.net> | 2017-11-13 19:35:33 -0500 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2017-12-17 21:06:25 +0100 |
commit | da57c5414f49ef9e4bcb9ae0bbafd1d650b31411 (patch) | |
tree | 281196ba075cfe03c9a1b24750f82ebcae42968e /arch/parisc | |
parent | 9352aeada4d8d8753fc0e414fbfe8fdfcb68a12c (diff) | |
download | linux-da57c5414f49ef9e4bcb9ae0bbafd1d650b31411.tar.bz2 |
parisc: Reduce thread stack to 16 kb
In testing, I found that the thread stack can be 16 kB when using an irq
stack. Without it, the thread stack needs to be 32 kB. Currently, the irq
stack is 32 kB. While it probably could be 16 kB, I would prefer to leave it
as is for safety.
Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/include/asm/thread_info.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/thread_info.h b/arch/parisc/include/asm/thread_info.h index c980a02a52bc..598c8d60fa5e 100644 --- a/arch/parisc/include/asm/thread_info.h +++ b/arch/parisc/include/asm/thread_info.h @@ -35,7 +35,12 @@ struct thread_info { /* thread information allocation */ +#ifdef CONFIG_IRQSTACKS +#define THREAD_SIZE_ORDER 2 /* PA-RISC requires at least 16k stack */ +#else #define THREAD_SIZE_ORDER 3 /* PA-RISC requires at least 32k stack */ +#endif + /* Be sure to hunt all references to this down when you change the size of * the kernel stack */ #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) |