summaryrefslogtreecommitdiff
path: root/ipc/sem.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/sem.c')
-rw-r--r--ipc/sem.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index 258b45e..db9d241 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -666,13 +666,6 @@ undo:
static void wake_up_sem_queue_prepare(struct list_head *pt,
struct sem_queue *q, int error)
{
-#ifdef CONFIG_PREEMPT_RT_BASE
- struct task_struct *p = q->sleeper;
- get_task_struct(p);
- q->status = error;
- wake_up_process(p);
- put_task_struct(p);
-#else
if (list_empty(pt)) {
/*
* Hold preempt off so that we don't get preempted and have the
@@ -684,7 +677,6 @@ static void wake_up_sem_queue_prepare(struct list_head *pt,
q->pid = error;
list_add_tail(&q->list, pt);
-#endif
}
/**
@@ -698,7 +690,6 @@ static void wake_up_sem_queue_prepare(struct list_head *pt,
*/
static void wake_up_sem_queue_do(struct list_head *pt)
{
-#ifndef CONFIG_PREEMPT_RT_BASE
struct sem_queue *q, *t;
int did_something;
@@ -711,7 +702,6 @@ static void wake_up_sem_queue_do(struct list_head *pt)
}
if (did_something)
preempt_enable();
-#endif
}
static void unlink_queue(struct sem_array *sma, struct sem_queue *q)