aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-07-23 11:33:13 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-01-26 18:20:24 -0500
commit5a648736360fb4038ad2e1c01a5922bda206e297 (patch)
tree33410e77ee67a9365a10920266d02eebe574601e /src
parentca501a7f388e84b3698d96c8068b23ed83283d30 (diff)
[NPS-F] Adapt to new add_server() API and fix parameters order
- comply with new add_server() API - fix wrong order in parameters for rt_launch_npsf.c
Diffstat (limited to 'src')
-rw-r--r--src/syscalls.c4
-rw-r--r--src/task.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/syscalls.c b/src/syscalls.c
index 6df716b..7ac488a 100644
--- a/src/syscalls.c
+++ b/src/syscalls.c
@@ -96,7 +96,7 @@ int null_call(cycles_t *timestamp)
96 return syscall(__NR_null_call, timestamp); 96 return syscall(__NR_null_call, timestamp);
97} 97}
98 98
99int add_server(int *npsf_id, struct npsf_budgets *budgets) 99int add_server(int *npsf_id, struct npsf_budgets *budgets, int last)
100{ 100{
101 return syscall(__NR_add_server, npsf_id, budgets); 101 return syscall(__NR_add_server, npsf_id, budgets, last);
102} 102}
diff --git a/src/task.c b/src/task.c
index c88c16b..9f6db5e 100644
--- a/src/task.c
+++ b/src/task.c
@@ -70,7 +70,7 @@ int __create_rt_task_edffm(rt_fn_t rt_prog, void *arg, int cpu, int wcet,
70} 70}
71 71
72int __create_rt_task_npsf(rt_fn_t rt_prog, void *arg, int cpu, int wcet, 72int __create_rt_task_npsf(rt_fn_t rt_prog, void *arg, int cpu, int wcet,
73 int period, task_class_t class, int npsf_id) 73 int period, int npsf_id, task_class_t class)
74{ 74{
75 struct rt_task params; 75 struct rt_task params;
76 params.cpu = cpu; 76 params.cpu = cpu;