kernel: fix #endif quard error for k_float_disable
The implementation of z_impl_float_disable was missplaced inside the #ifdef SPIN_VALIDATE. Fixing it. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
ffab197928
commit
0e67759985
1 changed files with 2 additions and 2 deletions
|
@ -791,6 +791,8 @@ void z_spin_lock_set_owner(struct k_spinlock *l)
|
|||
l->thread_cpu = _current_cpu->id | (uintptr_t)_current;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int z_impl_k_float_disable(struct k_thread *thread)
|
||||
{
|
||||
#if defined(CONFIG_FLOAT) && defined(CONFIG_FP_SHARING)
|
||||
|
@ -810,5 +812,3 @@ Z_SYSCALL_HANDLER(k_float_disable, thread_p)
|
|||
return z_impl_k_float_disable((struct k_thread *)thread_p);
|
||||
}
|
||||
#endif /* CONFIG_USERSPACE */
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue