aboutsummaryrefslogtreecommitdiffstats
path: root/rt-graph.h
diff options
context:
space:
mode:
authorJonathan <hermanjl@hermanjl-Aspire-5553G.(none)>2012-03-08 15:51:19 -0500
committerJonathan <hermanjl@hermanjl-Aspire-5553G.(none)>2012-03-08 15:51:19 -0500
commit974e24aaa13b710713b1654b11ffeefafef3723e (patch)
treece375b05851cd01658393402fbe9e7ce724eb725 /rt-graph.h
parentecf6f04712ac9d917bae11064ca10d86d4ab05cf (diff)
rt-graph: added parameters to tasks
Diffstat (limited to 'rt-graph.h')
-rw-r--r--rt-graph.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/rt-graph.h b/rt-graph.h
index 052f184..aff8aca 100644
--- a/rt-graph.h
+++ b/rt-graph.h
@@ -12,6 +12,11 @@
12#define TS_HASH_SIZE 12 12#define TS_HASH_SIZE 12
13struct ts_list; 13struct ts_list;
14 14
15struct rt_task_params {
16 unsigned long long wcet;
17 unsigned long long period;
18};
19
15struct rt_graph_info { 20struct rt_graph_info {
16 21
17 /* List of all real-time tasks */ 22 /* List of all real-time tasks */
@@ -105,4 +110,12 @@ void set_cpu_to_rts(struct graph_info *ginfo,
105void set_cpus_to_rts(struct graph_info *ginfo, 110void set_cpus_to_rts(struct graph_info *ginfo,
106 unsigned long long rt_target); 111 unsigned long long rt_target);
107 112
113static inline void nano_to_milli(unsigned long long time,
114 unsigned long long *msec,
115 unsigned long long *nsec)
116{
117 *msec = time / 1000000ULL;
118 *nsec = time % 1000000ULL;
119}
120
108#endif 121#endif