From: Marcin Dalecki <dalecki@evision.ag>
To: Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@transmeta.com>
Subject: [TRIVIAL] wait.h
Date: Thu, 01 Aug 2002 14:42:05 +0200 [thread overview]
Message-ID: <3D492C9D.2050309@evision.ag> (raw)
[-- Attachment #1: Type: text/plain, Size: 77 bytes --]
- C99 conformance
- removal of nowhere used conditional wait queue add macro
[-- Attachment #2: wait-2.5.29.diff --]
[-- Type: text/plain, Size: 1519 bytes --]
diff -durNp -X /tmp/diff.z44e2S linux-2.5.29/include/linux/wait.h linux/include/linux/wait.h
--- linux-2.5.29/include/linux/wait.h 2002-07-27 04:58:24.000000000 +0200
+++ linux/include/linux/wait.h 2002-08-01 14:30:37.000000000 +0200
@@ -43,16 +43,16 @@ typedef struct __wait_queue_head wait_qu
*/
#define __WAITQUEUE_INITIALIZER(name, tsk) { \
- task: tsk, \
- func: default_wake_function, \
- task_list: { NULL, NULL } }
+ .task = tsk, \
+ .func = default_wake_function, \
+ .task_list = { NULL, NULL } }
#define DECLARE_WAITQUEUE(name, tsk) \
wait_queue_t name = __WAITQUEUE_INITIALIZER(name, tsk)
#define __WAIT_QUEUE_HEAD_INITIALIZER(name) { \
- lock: SPIN_LOCK_UNLOCKED, \
- task_list: { &(name).task_list, &(name).task_list } }
+ .lock = SPIN_LOCK_UNLOCKED, \
+ .task_list = { &(name).task_list, &(name).task_list } }
#define DECLARE_WAIT_QUEUE_HEAD(name) \
wait_queue_head_t name = __WAIT_QUEUE_HEAD_INITIALIZER(name)
@@ -103,22 +103,6 @@ static inline void __remove_wait_queue(w
list_del(&old->task_list);
}
-#define add_wait_queue_cond(q, wait, cond) \
- ({ \
- unsigned long flags; \
- int _raced = 0; \
- spin_lock_irqsave(&(q)->lock, flags); \
- (wait)->flags = 0; \
- __add_wait_queue((q), (wait)); \
- rmb(); \
- if (!(cond)) { \
- _raced = 1; \
- __remove_wait_queue((q), (wait)); \
- } \
- spin_lock_irqrestore(&(q)->lock, flags); \
- _raced; \
- })
-
#endif /* __KERNEL__ */
#endif
reply other threads:[~2002-08-01 12:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D492C9D.2050309@evision.ag \
--to=dalecki@evision.ag \
--cc=linux-kernel@vger.kernel.org \
--cc=martin@dalecki.de \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox