kconfig: add configs for thread local storage
Add kconfigs to indicate whether an architecture has support for thread local storage (TLS), and to enable TLS in kernel. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
ad110d495e
commit
240beb42af
2 changed files with 9 additions and 0 deletions
|
@ -427,6 +427,9 @@ config ARCH_HAS_COHERENCE
|
||||||
arch_mem_coherent() API and can link into incoherent/cached
|
arch_mem_coherent() API and can link into incoherent/cached
|
||||||
memory using the ".cached" linker section.
|
memory using the ".cached" linker section.
|
||||||
|
|
||||||
|
config ARCH_HAS_THREAD_LOCAL_STORAGE
|
||||||
|
bool
|
||||||
|
|
||||||
#
|
#
|
||||||
# Other architecture related options
|
# Other architecture related options
|
||||||
#
|
#
|
||||||
|
|
|
@ -853,4 +853,10 @@ config TICKLESS_KERNEL
|
||||||
This option enables a fully event driven kernel. Periodic system
|
This option enables a fully event driven kernel. Periodic system
|
||||||
clock interrupt generation would be stopped at all times.
|
clock interrupt generation would be stopped at all times.
|
||||||
|
|
||||||
|
config THREAD_LOCAL_STORAGE
|
||||||
|
bool "Thread Local Storage (TLS)"
|
||||||
|
depends on ARCH_HAS_THREAD_LOCAL_STORAGE
|
||||||
|
help
|
||||||
|
This option enables thread local storage (TLS) support in kernel.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue