diff options
author | Jeremy Erickson <jerickso@cs.unc.edu> | 2012-05-28 13:24:37 -0400 |
---|---|---|
committer | Jeremy Erickson <jerickso@cs.unc.edu> | 2012-05-28 13:24:37 -0400 |
commit | 2035544754c3dd69570b204d774dcd4c7284750c (patch) | |
tree | f1a0d034ad8763e308ccbdb845a1330ee3adc174 | |
parent | aa433fcaa3e53aa84095db22b90d0ae47c052dce (diff) |
Add a comment on how G-EDF splitting works
-rw-r--r-- | litmus/sched_gsn_edf_split.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/litmus/sched_gsn_edf_split.c b/litmus/sched_gsn_edf_split.c index 0fe324e2c156..bcad03fd2c9b 100644 --- a/litmus/sched_gsn_edf_split.c +++ b/litmus/sched_gsn_edf_split.c | |||
@@ -6,6 +6,18 @@ | |||
6 | * | 6 | * |
7 | * This plugin is a modified version of the prior GSN-EDF plugin in | 7 | * This plugin is a modified version of the prior GSN-EDF plugin in |
8 | * litmus/sched_gsn_edf_split.c | 8 | * litmus/sched_gsn_edf_split.c |
9 | * | ||
10 | * Splitting an implicit-deadline job simply means splitting each job into an | ||
11 | * integral number of subjobs. For example, a task with a period of 10 ms and | ||
12 | * a runtime of 4 ms could be re-organized as a task with a period of 5 ms and | ||
13 | * a runtime of 2 ms, with analytical benefit for bounded tardiness (ignoring | ||
14 | * overheads and assuming no critical sections). | ||
15 | * | ||
16 | * Because our analysis works with early releasing, we actually only release | ||
17 | * each job once, but move the subjob deadline back when the appropriate amount | ||
18 | * of execution has been completed. (In the example above, a job released at | ||
19 | * time 0 would intially have a subjob deadline at time 5, but this deadline | ||
20 | * would be moved to time 10 as soon as 2 ms of execution had completed.) | ||
9 | */ | 21 | */ |
10 | 22 | ||
11 | #include <linux/spinlock.h> | 23 | #include <linux/spinlock.h> |