提交 d2883fa1 编写于 作者: J John David Anglin 提交者: Helge Deller

parisc: Optimize switch_mm

We only need to switch contexts when prev != next, and we don't need to
disable interrupts to do the check.
Signed-off-by: NJohn David Anglin <dave.anglin@bell.net>
Signed-off-by: NHelge Deller <deller@gmx.de>
上级 42593e70
......@@ -63,6 +63,9 @@ static inline void switch_mm(struct mm_struct *prev,
{
unsigned long flags;
if (prev == next)
return;
local_irq_save(flags);
switch_mm_irqs_off(prev, next, tsk);
local_irq_restore(flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册