Skip to content
Permalink
Browse files

thread.c: remove vestigial CONFIG_INIT_STACKS cruft

It looks like, at some point in the past, initializing thread stacks
was the responsibility of the arch layer. After that was centralized,
we forgot to remove the related conditional header inclusion. Fixed.

Signed-off-by: Charles E. Youse <charles.youse@intel.com>
  • Loading branch information...
Charles E. Youse authored and ioannisg committed Jul 30, 2019
1 parent 2bdfede commit 8e437adc425b65c3ddda98ed0543c1a363306df5
Showing with 0 additions and 14 deletions.
  1. +0 −3 arch/arc/core/thread.c
  2. +0 −4 arch/posix/core/thread.c
  3. +0 −4 arch/x86/core/ia32/thread.c
  4. +0 −3 arch/xtensa/core/thread.c
@@ -16,9 +16,6 @@
#include <kernel_structs.h>
#include <offsets_short.h>
#include <wait_q.h>
#ifdef CONFIG_INIT_STACKS
#include <string.h>
#endif /* CONFIG_INIT_STACKS */

#ifdef CONFIG_USERSPACE
#include <arch/arc/v2/mpu/arc_core_mpu.h>
@@ -13,10 +13,6 @@
* architecture
*/

#ifdef CONFIG_INIT_STACKS
#include <string.h>
#endif /* CONFIG_INIT_STACKS */

#include <toolchain.h>
#include <kernel_structs.h>
#include <wait_q.h>
@@ -12,10 +12,6 @@
* processor architecture.
*/

#ifdef CONFIG_INIT_STACKS
#include <string.h>
#endif /* CONFIG_INIT_STACKS */

#include <toolchain.h>
#include <linker/sections.h>
#include <kernel_structs.h>
@@ -3,9 +3,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#ifdef CONFIG_INIT_STACKS
#include <string.h>
#endif /* CONFIG_INIT_STACKS */
#ifdef CONFIG_DEBUG
#include <sys/printk.h>
#endif

0 comments on commit 8e437ad

Please sign in to comment.
You can’t perform that action at this time.