From d33c42a19da4ac9df635775ea411bf22c1931c9d Mon Sep 17 00:00:00 2001 From: Jithu Joseph Date: Thu, 26 Jan 2017 21:09:33 -0800 Subject: [PATCH] kernel: thread: Fix legacy symbol mixup in fp path When CONFIG_FP_SHARING is enabled without CONFIG_LEGACY thread.c was referencing symbols like K_TASK_GROUP_FPU which are defined in legacy.h Change-Id: I4bb1723f91c3e3586c5d1bf05cf23a1c0d3d5aac Signed-off-by: Jithu Joseph --- kernel/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/thread.c b/kernel/thread.c index d70820291f3..7121f09e623 100644 --- a/kernel/thread.c +++ b/kernel/thread.c @@ -32,7 +32,7 @@ extern struct _static_thread_data _static_thread_data_list_end[]; thread_data < _static_thread_data_list_end; \ thread_data++) -#ifdef CONFIG_FP_SHARING +#if defined(CONFIG_LEGACY_KERNEL) && defined(CONFIG_FP_SHARING) static inline void _task_group_adjust(struct _static_thread_data *thread_data) { /* @@ -50,7 +50,7 @@ static inline void _task_group_adjust(struct _static_thread_data *thread_data) } #else #define _task_group_adjust(thread_data) do { } while (0) -#endif /* CONFIG_FP_SHARING */ +#endif /* CONFIG_LEGACY_KERNEL && CONFIG_FP_SHARING */ /* Legacy API */ #if defined(CONFIG_LEGACY_KERNEL)