From e4b2da0cecd9a43be71430b1f8e2fbbde07ea6ec Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Tue, 26 Jun 2012 10:47:54 +0200 Subject: Make use of kernel-provided FP macros Use the kernel's notion of fixed priorities. Also, add some clarifying comments to the task setup wrappers. --- bin/rtspin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/rtspin.c b/bin/rtspin.c index 87c178a..f0a477d 100644 --- a/bin/rtspin.c +++ b/bin/rtspin.c @@ -169,7 +169,7 @@ int main(int argc, char** argv) lt_t wcet; lt_t period; double wcet_ms, period_ms; - unsigned int priority = LITMUS_MIN_PRIORITY; + unsigned int priority = LITMUS_LOWEST_PRIORITY; int migrate = 0; int cpu = 0; int opt; @@ -197,7 +197,7 @@ int main(int argc, char** argv) break; case 'q': priority = atoi(optarg); - if (priority == 0 || priority > LITMUS_MAX_PRIORITY) + if (!litmus_is_valid_fixed_prio(priority)) usage("Invalid priority."); break; case 'c': -- cgit v1.2.2