aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/litmus.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r--litmus/litmus.c2
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
557void litmus_pre_exit_task(struct task_struct* tsk) 557void 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
567void litmus_exit_task(struct task_struct* tsk) 569void litmus_exit_task(struct task_struct* tsk)