unified: add kconfig option for idle thread stack size

Idle thread may need a bigger stack depending on extra work it has to
do, like power management or kernel event logging.

Change-Id: Iff691d7838036d602bad79799820b68ad55ad00f
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-10-24 12:57:46 -04:00
commit c9dd56ec71
2 changed files with 11 additions and 1 deletions

View file

@ -114,6 +114,16 @@ config MAIN_STACK_SIZE
After initialization is complete, the thread runs main().
config IDLE_STACK_SIZE
int
prompt "Size of stack for idle thread"
default 256
help
Depending on the work that the idle task must do, most likely due to
power management but possibly to other features like system event
logging (e.g. logging when the system goes to sleep), the idle thread
may need more stack space than the default value.
config ISR_STACK_SIZE
int
prompt "ISR and initialization stack size (in bytes)"

View file

@ -72,7 +72,7 @@ uint64_t __noinit __idle_tsc; /* timestamp when CPU goes idle */
/* init/main and idle threads */
#define IDLE_STACK_SIZE 256
#define IDLE_STACK_SIZE CONFIG_IDLE_STACK_SIZE
#if CONFIG_MAIN_STACK_SIZE & (STACK_ALIGN - 1)
#error "MAIN_STACK_SIZE must be a multiple of the stack alignment"