infra: remove superfluous event trigger

This commit is contained in:
Thomas Schoebel-Theuer 2017-06-05 23:25:05 +02:00 committed by Thomas Schoebel-Theuer
parent 37fb40f8a7
commit 8b6fe3e3bb
2 changed files with 0 additions and 17 deletions

View File

@ -35,7 +35,6 @@
int q_io_prio; \
bool q_ordering; \
/* private */ \
wait_queue_head_t *q_event; \
spinlock_t q_lock; \
struct list_head q_anchor; \
struct pairing_heap_##HEAPTYPE *heap_high; \
@ -47,14 +46,6 @@
#define QUEUE_FUNCTIONS(PREFIX,ELEM_TYPE,HEAD,KEYFN,KEYCMP,HEAPTYPE) \
\
static inline \
void q_##PREFIX##_trigger(struct PREFIX##_queue *q) \
{ \
if (q->q_event) { \
wake_up_interruptible(q->q_event); \
} \
} \
\
static inline \
void q_##PREFIX##_init(struct PREFIX##_queue *q) \
{ \
INIT_LIST_HEAD(&q->q_anchor); \
@ -93,8 +84,6 @@ void q_##PREFIX##_insert(struct PREFIX##_queue *q, ELEM_TYPE *elem) \
q->q_last_insert = jiffies; \
\
traced_unlock(&q->q_lock, flags); \
\
q_##PREFIX##_trigger(q); \
} \
\
static inline \
@ -112,8 +101,6 @@ void q_##PREFIX##_pushback(struct PREFIX##_queue *q, ELEM_TYPE *elem) \
q->q_queued++; \
\
traced_unlock(&q->q_lock, flags); \
\
q_##PREFIX##_trigger(q); \
} \
\
static inline \
@ -154,8 +141,6 @@ ELEM_TYPE *q_##PREFIX##_fetch(struct PREFIX##_queue *q) \
\
traced_unlock(&q->q_lock, flags); \
\
q_##PREFIX##_trigger(q); \
\
return elem; \
} \
\
@ -167,7 +152,6 @@ void q_##PREFIX##_activate(struct PREFIX##_queue *q, int count) \
traced_lock(&q->q_lock, flags); \
q->q_active += count; \
traced_unlock(&q->q_lock, flags); \
q_##PREFIX##_trigger(q); \
} \

View File

@ -202,7 +202,6 @@ static inline
void qq_init(struct logger_queue *q, struct trans_logger_brick *brick)
{
q_logger_init(q);
q->q_event = &brick->worker_event;
q->q_brick = brick;
}