diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-04-16 20:09:15 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-04-16 20:09:15 -0400 |
commit | 8675824ed85d6e83a24e77dabaf3a5c02c91ef6f (patch) | |
tree | 29e19fb32cacb062abca434fc921636d600ce77b /litmus/litmus.c | |
parent | 0b865246946a97dc03a81ccf55bf84acce923c4b (diff) |
Implement GPU-affinity-aware kfmlp (untested)
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r-- | litmus/litmus.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c index 2f9079421ec7..dd8b72e1af08 100644 --- a/litmus/litmus.c +++ b/litmus/litmus.c | |||
@@ -387,6 +387,13 @@ static void reinit_litmus_state(struct task_struct* p, int restore) | |||
387 | p->rt_param.ctrl_page = ctrl_page; | 387 | p->rt_param.ctrl_page = ctrl_page; |
388 | } | 388 | } |
389 | 389 | ||
390 | #if defined(CONFIG_LITMUS_NVIDIA) && defined(CONFIG_LITMUS_AFFINITY_LOCKING) | ||
391 | p->rt_param.gpu_fb_param_a = _frac(14008, 1000); | ||
392 | p->rt_param.gpu_fb_param_b = _frac(16024, 1000); | ||
393 | p->rt_param.gpu_migration = MIG_LAST; | ||
394 | p->rt_param.last_gpu = -1; | ||
395 | #endif | ||
396 | |||
390 | #ifdef CONFIG_LITMUS_NESTED_LOCKING | 397 | #ifdef CONFIG_LITMUS_NESTED_LOCKING |
391 | INIT_BINHEAP_HANDLE(&p->rt_param.hp_blocked_tasks, prio_order); | 398 | INIT_BINHEAP_HANDLE(&p->rt_param.hp_blocked_tasks, prio_order); |
392 | raw_spin_lock_init(&p->rt_param.hp_blocked_tasks_lock); | 399 | raw_spin_lock_init(&p->rt_param.hp_blocked_tasks_lock); |