Messages in this thread Patch in this message |  | | | Subject | [RFC 1/12][PATCH] Extended scheduling parameters structure added. | | From | Raistlin <> | | Date | Fri, 16 Oct 2009 17:38:55 +0200 |
| |
An extended scheduling parameter structure, sched_param_ex, is defined in this commit, as the starting point for supporting task models more sophisticated than fixed-priority.
One that is both popular and (hopefully!) general enough is the so-called sporadic task model, in which tasks' computation is divided into instances, each one with: * a (maximum/typical) execution time, * a minimum interval between the activation of two consecutive instances, * a time instant by which the computation of the instance must be completed.
The new sched_param_ex reflects this model, and thus allows for better specification of time sensitive workloads typical, for example, in real-time, control and/or continuous media applications.
Signed-off-by: Raistlin <raistlin@linux.it> --- include/linux/sched.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 75e6e60..ac9837c 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -94,6 +94,14 @@ struct sched_param { #include <asm/processor.h> +struct sched_param_ex { + int sched_priority; + struct timespec sched_runtime; + struct timespec sched_deadline; + struct timespec sched_period; + int sched_flags; +}; + struct exec_domain; struct futex_pi_state; struct robust_list_head; -- 1.6.0.4 -- <<This happens because I choose it to happen!>> (Raistlin Majere) ---------------------------------------------------------------------- Dario Faggioli, ReTiS Lab, Scuola Superiore Sant'Anna, Pisa (Italy) http://blog.linux.it/raistlin / raistlin@ekiga.net / dario.faggioli@jabber.org [unhandled content-type:application/pgp-signature] |  |