diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-09-07 23:25:01 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-09-07 23:33:05 -0400 |
commit | 6a225701acf7d79f292eeffcd99d6f00b02c180b (patch) | |
tree | 6a7f538703a5a6460a0e53c62f0f952998840ea1 /litmus/litmus.c | |
parent | b53c479a0f44b8990ce106622412a3bf54809944 (diff) |
Infrastructure for Litmus signals.prop/litmus-signals
Added signals to Litmus. Specifcally, SIG_BUDGET signals
are delivered (when requested by real-time tasks) when
a budget is exceeded.
Note: pfair not currently supported (but it probably could be).
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r-- | litmus/litmus.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c index 81384327e850..3526749852aa 100644 --- a/litmus/litmus.c +++ b/litmus/litmus.c | |||
@@ -136,6 +136,16 @@ asmlinkage long sys_set_rt_task_param(pid_t pid, struct rt_task __user * param) | |||
136 | pid, tp.budget_policy); | 136 | pid, tp.budget_policy); |
137 | goto out_unlock; | 137 | goto out_unlock; |
138 | } | 138 | } |
139 | if (tp.budget_signal_policy != NO_SIGNALS && | ||
140 | tp.budget_signal_policy != QUANTUM_SIGNALS && | ||
141 | tp.budget_signal_policy != PRECISE_SIGNALS) | ||
142 | { | ||
143 | printk(KERN_INFO "litmus: real-time task %d rejected " | ||
144 | "because unsupported budget signalling policy " | ||
145 | "specified (%d)\n", | ||
146 | pid, tp.budget_signal_policy); | ||
147 | goto out_unlock; | ||
148 | } | ||
139 | 149 | ||
140 | target->rt_param.task_params = tp; | 150 | target->rt_param.task_params = tp; |
141 | 151 | ||