From 0f6a8e02773f8c23b5b6a3dbfa044e50c9d7d811 Mon Sep 17 00:00:00 2001 From: Glenn Elliott Date: Thu, 31 Mar 2011 10:47:01 -0400 Subject: Improve FMLP queue management. The next owner of a FMLP-protected resource is dequeued from the FMLP FIFO queue by unlock() (when the resource is freed by the previous owner) instead of performing the dequeue by the next owner immediately after it has been woken up. This simplifies the code a little bit and also reduces potential spinlock contention. --- include/litmus/litmus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h index 94086e2b38db..e7769ca36ec0 100644 --- a/include/litmus/litmus.h +++ b/include/litmus/litmus.h @@ -26,7 +26,7 @@ static inline int in_list(struct list_head* list) ); } -struct task_struct* waitqueue_first(wait_queue_head_t *wq); +struct task_struct* __waitqueue_remove_first(wait_queue_head_t *wq); #define NO_CPU 0xffffffff -- cgit v1.2.2