Commit e4b6552f authored by Philippe Gerum's avatar Philippe Gerum
Browse files

arm64/ipipe: make __switch_to() pipeline-aware

parent c2d0f625
...@@ -356,7 +356,9 @@ struct task_struct *__switch_to(struct task_struct *prev, ...@@ -356,7 +356,9 @@ struct task_struct *__switch_to(struct task_struct *prev,
struct task_struct *next) struct task_struct *next)
{ {
struct task_struct *last; struct task_struct *last;
unsigned long flags;
flags = hard_cond_local_irq_save();
fpsimd_thread_switch(next); fpsimd_thread_switch(next);
tls_thread_switch(next); tls_thread_switch(next);
hw_breakpoint_thread_switch(next); hw_breakpoint_thread_switch(next);
...@@ -370,6 +372,7 @@ struct task_struct *__switch_to(struct task_struct *prev, ...@@ -370,6 +372,7 @@ struct task_struct *__switch_to(struct task_struct *prev,
/* the actual thread switch */ /* the actual thread switch */
last = cpu_switch_to(prev, next); last = cpu_switch_to(prev, next);
hard_cond_local_irq_restore(flags);
return last; return last;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment