Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6fb43d7b authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: micro-optimize mmdrop()



micro-optimize mmdrop(). Improves schedule()'s assembly a bit.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 9c4801ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}