diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2014-01-17 15:55:38 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2014-02-19 15:33:41 -0500 |
commit | edcfeac634d5ddc63e49b660e5a8d2b3bcb46db3 (patch) | |
tree | d4450bce5dc21da50043489c2e5abd0b06b91fa8 | |
parent | 424bf1e151b1bad49bf25b0ca9a7f860f4c9b6dc (diff) |
Add combined PGM_SRC_SINK node type.
-rw-r--r-- | include/litmus/rt_param.h | 1 | ||||
-rw-r--r-- | litmus/litmus.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/litmus/rt_param.h b/include/litmus/rt_param.h index 0ddc1973b0aa..7b4045069b27 100644 --- a/include/litmus/rt_param.h +++ b/include/litmus/rt_param.h | |||
@@ -55,6 +55,7 @@ typedef enum { | |||
55 | PGM_NOT_A_NODE, | 55 | PGM_NOT_A_NODE, |
56 | PGM_SRC, | 56 | PGM_SRC, |
57 | PGM_SINK, | 57 | PGM_SINK, |
58 | PGM_SRC_SINK, | ||
58 | PGM_INTERNAL | 59 | PGM_INTERNAL |
59 | } pgm_node_type_t; | 60 | } pgm_node_type_t; |
60 | 61 | ||
diff --git a/litmus/litmus.c b/litmus/litmus.c index 6f6479b10db0..058cb956fb44 100644 --- a/litmus/litmus.c +++ b/litmus/litmus.c | |||
@@ -144,6 +144,12 @@ asmlinkage long sys_set_rt_task_param(pid_t pid, struct rt_task __user * param) | |||
144 | pid, tp.budget_policy); | 144 | pid, tp.budget_policy); |
145 | goto out_unlock; | 145 | goto out_unlock; |
146 | } | 146 | } |
147 | if (tp.pgm_type < PGM_NOT_A_NODE || tp.pgm_type > PGM_INTERNAL) { | ||
148 | printk(KERN_INFO "litmus: real-time task %d rejected " | ||
149 | "because of unknown PGM node type specified (%d)\n", | ||
150 | pid, tp.pgm_type); | ||
151 | goto out_unlock; | ||
152 | } | ||
147 | 153 | ||
148 | target->rt_param.task_params = tp; | 154 | target->rt_param.task_params = tp; |
149 | 155 | ||