aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2014-01-17 15:55:38 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2014-01-17 15:55:38 -0500
commite121b41ebcfa1ce83ab77fc93e7fdbb1f522437e (patch)
tree58cce8a8a4c831aba8df9c43033fd57f80bf5178
parent379f71386ac543baf10d352459405b2d42d7aa21 (diff)
Add combined PGM_SRC_SINK node type.
-rw-r--r--include/litmus/rt_param.h1
-rw-r--r--litmus/litmus.c6
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 8937f5233b0e..76378ce34c2b 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