diff options
author | John M. Calandrino <jmc@jupiter-cs.cs.unc.edu> | 2007-04-19 12:17:19 -0400 |
---|---|---|
committer | John M. Calandrino <jmc@jupiter-cs.cs.unc.edu> | 2007-04-19 12:17:19 -0400 |
commit | f799d49688e4bfc27b45a64b32749ee82cc70248 (patch) | |
tree | 6a55876eddcbc9876c6f9ebd2f15956c76687246 /include | |
parent | 882253a1054313258d7209b60af0e9c2a1e5e80e (diff) |
Added a way for tasks to see what their current priority is due to priority
inheritance.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/rt_param.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/rt_param.h b/include/linux/rt_param.h index d79b100052..49c9397155 100644 --- a/include/linux/rt_param.h +++ b/include/linux/rt_param.h | |||
@@ -34,6 +34,10 @@ typedef struct task_rt_param { | |||
34 | rt_param_t basic_params; | 34 | rt_param_t basic_params; |
35 | /* is the task sleeping? */ | 35 | /* is the task sleeping? */ |
36 | unsigned int flags; | 36 | unsigned int flags; |
37 | /* does the task have a resource, i.e., should we consider | ||
38 | * the "inherited" deadline in addition to its own? | ||
39 | */ | ||
40 | unsigned int has_resource; | ||
37 | struct { | 41 | struct { |
38 | /* when will this task be release the next time? */ | 42 | /* when will this task be release the next time? */ |
39 | jiffie_t release; | 43 | jiffie_t release; |
@@ -41,6 +45,11 @@ typedef struct task_rt_param { | |||
41 | jiffie_t last_release; | 45 | jiffie_t last_release; |
42 | /* what is the current deadline? */ | 46 | /* what is the current deadline? */ |
43 | jiffie_t deadline; | 47 | jiffie_t deadline; |
48 | /* what is the current "inherited" deadline, if this | ||
49 | * task has a resource? this is a pointer, so that | ||
50 | * it remains current | ||
51 | */ | ||
52 | jiffie_t *inh_deadline; | ||
44 | 53 | ||
45 | /* how long has this task executed so far? | 54 | /* how long has this task executed so far? |
46 | * In case of capacity sharing a job completion cannot be | 55 | * In case of capacity sharing a job completion cannot be |