[PATCH] new scheme to preempt swap token
[linux-2.6-block.git] / include / linux / sched.h
index eafe4a7b8237d902e31eef13aaacd212ea5b84f4..cad6a16260f76f9115a3e893a804d0b3eb711c10 100644 (file)
@@ -344,9 +344,16 @@ struct mm_struct {
        /* Architecture-specific MM context */
        mm_context_t context;
 
-       /* Token based thrashing protection. */
-       unsigned long swap_token_time;
-       char recent_pagein;
+       /* Swap token stuff */
+       /*
+        * Last value of global fault stamp as seen by this process.
+        * In other words, this value gives an indication of how long
+        * it has been since this task got the token.
+        * Look at mm/thrash.c
+        */
+       unsigned int faultstamp;
+       unsigned int token_priority;
+       unsigned int last_interval;
 
        /* coredumping support */
        int core_waiters;