diff options
author | Namhoon Kim <namhoonk@cs.unc.edu> | 2015-07-23 11:16:58 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-08-03 04:14:43 -0400 |
commit | 5d1cbacb608f44c632f995f3c6e402e85305c02b (patch) | |
tree | de930c92dd5a211f5d57fa1a597aad4ab9511887 | |
parent | 7a8779feaa95b05fa2492a4b5a096afb6b5dc0a6 (diff) |
Fix memset() parameters for scheduling parameter struct
Signed-off-by: Bjoern Brandenburg <bbb@mpi-sws.org>
-rw-r--r-- | src/task.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -18,7 +18,7 @@ int task_mode(int mode) | |||
18 | int policy = sched_getscheduler(gettid()); | 18 | int policy = sched_getscheduler(gettid()); |
19 | int old_mode = policy == SCHED_LITMUS ? LITMUS_RT_TASK : BACKGROUND_TASK; | 19 | int old_mode = policy == SCHED_LITMUS ? LITMUS_RT_TASK : BACKGROUND_TASK; |
20 | 20 | ||
21 | memset(¶m, sizeof(param), 0); | 21 | memset(¶m, 0, sizeof(param)); |
22 | param.sched_priority = 0; | 22 | param.sched_priority = 0; |
23 | if (old_mode == LITMUS_RT_TASK && mode == BACKGROUND_TASK) { | 23 | if (old_mode == LITMUS_RT_TASK && mode == BACKGROUND_TASK) { |
24 | /* transition to normal task */ | 24 | /* transition to normal task */ |