diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2011-08-27 10:10:06 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2011-08-27 10:10:06 -0400 |
commit | 56c5c609615322bfbda5adff94ce011eb3d28fef (patch) | |
tree | f61445270fb922af8c9b14487c65f95c282a9356 /litmus | |
parent | 7b1bb388bc879ffcc6c69b567816d5c354afe42b (diff) |
Fix prototype mismatching and synch syscall numbers
* Update prototypes for switched_to(), prio_changed(), select_task_rq().
* Fix missing pid field in printk output.
* Synchronize syscall numbers for arm and x86.
Diffstat (limited to 'litmus')
-rw-r--r-- | litmus/litmus.c | 2 | ||||
-rw-r--r-- | litmus/sched_litmus.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c index 26938acacafc..bb8c6c7e9dd1 100644 --- a/litmus/litmus.c +++ b/litmus/litmus.c | |||
@@ -115,7 +115,7 @@ asmlinkage long sys_set_rt_task_param(pid_t pid, struct rt_task __user * param) | |||
115 | tp.cls != RT_CLASS_BEST_EFFORT) | 115 | tp.cls != RT_CLASS_BEST_EFFORT) |
116 | { | 116 | { |
117 | printk(KERN_INFO "litmus: real-time task %d rejected " | 117 | printk(KERN_INFO "litmus: real-time task %d rejected " |
118 | "because its class is invalid\n"); | 118 | "because its class is invalid\n", pid); |
119 | goto out_unlock; | 119 | goto out_unlock; |
120 | } | 120 | } |
121 | if (tp.budget_policy != NO_ENFORCEMENT && | 121 | if (tp.budget_policy != NO_ENFORCEMENT && |
diff --git a/litmus/sched_litmus.c b/litmus/sched_litmus.c index cb705e7f0466..5a15ce938984 100644 --- a/litmus/sched_litmus.c +++ b/litmus/sched_litmus.c | |||
@@ -252,12 +252,12 @@ static void task_tick_litmus(struct rq *rq, struct task_struct *p, int queued) | |||
252 | return; | 252 | return; |
253 | } | 253 | } |
254 | 254 | ||
255 | static void switched_to_litmus(struct rq *rq, struct task_struct *p, int running) | 255 | static void switched_to_litmus(struct rq *rq, struct task_struct *p) |
256 | { | 256 | { |
257 | } | 257 | } |
258 | 258 | ||
259 | static void prio_changed_litmus(struct rq *rq, struct task_struct *p, | 259 | static void prio_changed_litmus(struct rq *rq, struct task_struct *p, |
260 | int oldprio, int running) | 260 | int oldprio) |
261 | { | 261 | { |
262 | } | 262 | } |
263 | 263 | ||
@@ -283,8 +283,8 @@ static void set_curr_task_litmus(struct rq *rq) | |||
283 | * We don't care about the scheduling domain; can gets called from | 283 | * We don't care about the scheduling domain; can gets called from |
284 | * exec, fork, wakeup. | 284 | * exec, fork, wakeup. |
285 | */ | 285 | */ |
286 | static int select_task_rq_litmus(struct rq *rq, struct task_struct *p, | 286 | static int |
287 | int sd_flag, int flags) | 287 | select_task_rq_litmus(struct task_struct *p, int sd_flag, int flags) |
288 | { | 288 | { |
289 | /* preemption is already disabled. | 289 | /* preemption is already disabled. |
290 | * We don't want to change cpu here | 290 | * We don't want to change cpu here |