Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55880
b: refs/heads/master
c: 7faaa5f
h: refs/heads/master
v: v3
  • Loading branch information
Mika Kukkonen authored and Linus Torvalds committed May 11, 2007
1 parent eb55144 commit 492a45d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 069f11f9d66bc582fb40a37a7b92363f5d321969
refs/heads/master: 7faaa5f0bf4db6ac4908038e2139adc46c165ff4
5 changes: 2 additions & 3 deletions trunk/mm/thrash.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ void grab_swap_token(void)
if (current_interval < current->mm->last_interval)
current->mm->token_priority++;
else {
current->mm->token_priority--;
if (unlikely(current->mm->token_priority < 0))
current->mm->token_priority = 0;
if (likely(current->mm->token_priority > 0))
current->mm->token_priority--;
}
/* Check if we deserve the token */
if (current->mm->token_priority >
Expand Down

0 comments on commit 492a45d

Please sign in to comment.