From 2c1f329215e57a6f070cab21236b132b22ef80c2 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Tue, 12 Feb 2008 15:51:00 -0500 Subject: first changes to compile with LITMUS 2008 --- include/internal.h | 6 +++++- include/litmus.h | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/internal.h b/include/internal.h index 25e1573..761c434 100644 --- a/include/internal.h +++ b/include/internal.h @@ -5,7 +5,7 @@ /* prepare a real-time task */ typedef int (*rt_setup_fn_t)(int pid, void* arg); -int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, +int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, rt_setup_fn_t setup, void* setup_arg); #define check(str) \ @@ -19,3 +19,7 @@ int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, #endif + + +int sched_setscheduler(pid_t pid, int policy, int* prioriy); +int sched_getscheduler(pid_t pid); diff --git a/include/litmus.h b/include/litmus.h index b10abff..6699213 100644 --- a/include/litmus.h +++ b/include/litmus.h @@ -1,7 +1,7 @@ #ifndef LITMUS_H #define LITMUS_H -#include +#include #include typedef int pid_t; /* PID of a task */ @@ -14,7 +14,7 @@ int get_rt_task_param(pid_t pid, struct rt_task* param); /* setup helper */ /* times are givin in ms */ -int sporadic_task(unsigned long exec_cost, unsigned long period, +int sporadic_task(unsigned long exec_cost, unsigned long period, int partition, task_class_t cls); #define sporadic_global(e, p) \ @@ -57,7 +57,7 @@ void exit_litmus(void); typedef int (*rt_fn_t)(void*); int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period); -int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, +int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period, task_class_t cls); /* per-task modes */ -- cgit v1.2.2