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 <jithu.joseph@intel.com>
This commit is contained in:
Jithu Joseph 2017-01-26 21:09:33 -08:00 committed by Anas Nashif
commit d33c42a19d

View file

@ -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)