提交 6fb43d7b 编写于 作者: I Ingo Molnar

sched: micro-optimize mmdrop()

micro-optimize mmdrop(). Improves schedule()'s assembly a bit.
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 9c4801ce
......@@ -1514,7 +1514,7 @@ extern struct mm_struct * mm_alloc(void);
extern void FASTCALL(__mmdrop(struct mm_struct *));
static inline void mmdrop(struct mm_struct * mm)
{
if (atomic_dec_and_test(&mm->mm_count))
if (unlikely(atomic_dec_and_test(&mm->mm_count)))
__mmdrop(mm);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册