git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parisc: update parisc for new irq_desc
[safe/jmp/linux-2.6]
/
mm
/
thrash.c
diff --git
a/mm/thrash.c
b/mm/thrash.c
index
19e428c
..
c4c5205
100644
(file)
--- a/
mm/thrash.c
+++ b/
mm/thrash.c
@@
-24,7
+24,7
@@
static DEFINE_SPINLOCK(swap_token_lock);
struct mm_struct *swap_token_mm;
static DEFINE_SPINLOCK(swap_token_lock);
struct mm_struct *swap_token_mm;
-unsigned int global_faults;
+
static
unsigned int global_faults;
void grab_swap_token(void)
{
void grab_swap_token(void)
{
@@
-48,9
+48,8
@@
void grab_swap_token(void)
if (current_interval < current->mm->last_interval)
current->mm->token_priority++;
else {
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 >
}
/* Check if we deserve the token */
if (current->mm->token_priority >