diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-08 19:19:53 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-22 15:00:12 -0500 |
commit | ee91e39147039693f9f4063e319b836adb8401bf (patch) | |
tree | 6c5fad556545f22bf795ff03121e494d7d4af00a /bin/rtspin.c | |
parent | 5e40fcc568a204ce8b96f734a71402d0ca52e076 (diff) |
rtspin: transition back to non-real-time mode
rtspin produces prettier schedules if it transitions to non-real-time
mode before terminating.
Diffstat (limited to 'bin/rtspin.c')
-rw-r--r-- | bin/rtspin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/rtspin.c b/bin/rtspin.c index 5e45fb7..649da45 100644 --- a/bin/rtspin.c +++ b/bin/rtspin.c | |||
@@ -264,5 +264,9 @@ int main(int argc, char** argv) | |||
264 | /* 90% wcet, in seconds */ | 264 | /* 90% wcet, in seconds */ |
265 | while (job(wcet_ms * 0.0009, start + duration)); | 265 | while (job(wcet_ms * 0.0009, start + duration)); |
266 | 266 | ||
267 | ret = task_mode(BACKGROUND_TASK); | ||
268 | if (ret != 0) | ||
269 | bail_out("could not become regular task (huh?)"); | ||
270 | |||
267 | return 0; | 271 | return 0; |
268 | } | 272 | } |