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:
parent
f7a6e28a3c
commit
d33c42a19d
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue