diff options
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r-- | litmus/litmus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c index 740b5e57ecc1..a69a3d0e9128 100644 --- a/litmus/litmus.c +++ b/litmus/litmus.c | |||
@@ -556,12 +556,14 @@ out: | |||
556 | 556 | ||
557 | void litmus_pre_exit_task(struct task_struct* tsk) | 557 | void litmus_pre_exit_task(struct task_struct* tsk) |
558 | { | 558 | { |
559 | #ifdef CONFIG_LITMUS_AFFINITY_LOCKING | ||
559 | if (is_realtime(tsk)) { | 560 | if (is_realtime(tsk)) { |
560 | if (tsk_rt(tsk)->rsrc_exit_cb) { | 561 | if (tsk_rt(tsk)->rsrc_exit_cb) { |
561 | int ret = tsk_rt(tsk)->rsrc_exit_cb(tsk); | 562 | int ret = tsk_rt(tsk)->rsrc_exit_cb(tsk); |
562 | WARN_ON(ret != 0); | 563 | WARN_ON(ret != 0); |
563 | } | 564 | } |
564 | } | 565 | } |
566 | #endif | ||
565 | } | 567 | } |
566 | 568 | ||
567 | void litmus_exit_task(struct task_struct* tsk) | 569 | void litmus_exit_task(struct task_struct* tsk) |