|
@@ -80,8 +80,10 @@ void fpsimd_thread_switch(struct task_struct *next)
|
|
|
|
|
|
|
|
void fpsimd_flush_thread(void)
|
|
void fpsimd_flush_thread(void)
|
|
|
{
|
|
{
|
|
|
|
|
+ preempt_disable();
|
|
|
memset(¤t->thread.fpsimd_state, 0, sizeof(struct fpsimd_state));
|
|
memset(¤t->thread.fpsimd_state, 0, sizeof(struct fpsimd_state));
|
|
|
fpsimd_load_state(¤t->thread.fpsimd_state);
|
|
fpsimd_load_state(¤t->thread.fpsimd_state);
|
|
|
|
|
+ preempt_enable();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#ifdef CONFIG_KERNEL_MODE_NEON
|
|
#ifdef CONFIG_KERNEL_MODE_NEON
|