diff options
author | Namhoon Kim <namhoonk@cs.unc.edu> | 2017-04-26 03:16:19 -0400 |
---|---|---|
committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2017-04-26 03:16:19 -0400 |
commit | 4aa7012456a9627f56d0dac44e4e2647527a1d9e (patch) | |
tree | 447d02d99d1fd101bf7f87b74601d03651dcaa72 | |
parent | ab373838f379e767f2f8ed26302e9f867a35fea9 (diff) |
sys_call fix
-rw-r--r-- | litmus/litmus.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c index 129f74740480..554002d8b9a8 100644 --- a/litmus/litmus.c +++ b/litmus/litmus.c | |||
@@ -435,11 +435,14 @@ asmlinkage long sys_set_page_color(int cpu) | |||
435 | // } | 435 | // } |
436 | 436 | ||
437 | ret = 0; | 437 | ret = 0; |
438 | if (!is_realtime(current)) | 438 | //if (!is_realtime(current)) |
439 | lv = 1; | 439 | // lv = 1; |
440 | else { | 440 | // else { |
441 | if (tsk_rt(current)->mc2_data) | ||
441 | lv = tsk_rt(current)->mc2_data->crit; | 442 | lv = tsk_rt(current)->mc2_data->crit; |
442 | } | 443 | else |
444 | BUG();//lv = 0; | ||
445 | // } | ||
443 | 446 | ||
444 | if (cpu == -1) | 447 | if (cpu == -1) |
445 | node = 8; | 448 | node = 8; |