mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
sched: micro-optimize mmdrop()
micro-optimize mmdrop(). Improves schedule()'s assembly a bit. Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
9c4801cebc
commit
6fb43d7b50
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue