diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-09-30 09:46:11 -0400 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-02-12 06:49:39 -0500 |
| commit | 6b0053a1e5ebb023abb97f6c8dc49bda63e1fd48 (patch) | |
| tree | 53e90948320c87eb863ebe047d94ef1da2e34030 | |
| parent | fda846aa4edd92248e4947988e60b808c7f3109e (diff) | |
Do not overwrite Task.jitter in FP overhead accounting
If the parameter already exists, then it should be inflated, not
overwritten.
| -rw-r--r-- | schedcat/overheads/fp.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/schedcat/overheads/fp.py b/schedcat/overheads/fp.py index 97859bb..e602850 100644 --- a/schedcat/overheads/fp.py +++ b/schedcat/overheads/fp.py | |||
| @@ -34,7 +34,9 @@ def charge_scheduling_overheads(oheads, num_cpus, dedicated_irq, taskset): | |||
| 34 | release_delay += oheads.ipi_latency(taskset) | 34 | release_delay += oheads.ipi_latency(taskset) |
| 35 | 35 | ||
| 36 | for t in taskset: | 36 | for t in taskset: |
| 37 | t.jitter = release_delay | 37 | if not 'jitter' in t.__dict__: |
| 38 | t.jitter = 0 | ||
| 39 | t.jitter += release_delay | ||
| 38 | 40 | ||
| 39 | # account for scheduling cost and CPMD | 41 | # account for scheduling cost and CPMD |
| 40 | sched = oheads.schedule(taskset) | 42 | sched = oheads.schedule(taskset) |
| @@ -49,7 +51,7 @@ def charge_scheduling_overheads(oheads, num_cpus, dedicated_irq, taskset): | |||
| 49 | def quantize_params(taskset): | 51 | def quantize_params(taskset): |
| 50 | """After applying overheads, use this function to make | 52 | """After applying overheads, use this function to make |
| 51 | task parameters integral again.""" | 53 | task parameters integral again.""" |
| 52 | 54 | ||
| 53 | for t in taskset: | 55 | for t in taskset: |
| 54 | t.cost = int(ceil(t.cost)) | 56 | t.cost = int(ceil(t.cost)) |
| 55 | t.period = int(floor(t.period)) | 57 | t.period = int(floor(t.period)) |
