lkml.org 
[lkml]   [2010]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateWed, 24 Feb 2010 21:20:38 +0100
FromOleg Nesterov <>
Subject[PATCH 3/3] workqueues: s/2/WORK_STRUCT_STATIC/ in WORK_DATA_STATIC_INIT()
Cosmetic. Don't hide WORK_STRUCT_STATIC from grep.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
---
include/linux/workqueue.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- wq/include/linux/workqueue.h~3_STATIC_INIT_USE_STATIC 2010-02-24 20:33:43.000000000 +0100
+++ wq/include/linux/workqueue.h 2010-02-24 21:01:20.000000000 +0100
@@ -36,7 +36,7 @@ struct work_struct {
};

#define WORK_DATA_INIT() ATOMIC_LONG_INIT(0)
-#define WORK_DATA_STATIC_INIT() ATOMIC_LONG_INIT(2)
+#define WORK_DATA_STATIC_INIT() ATOMIC_LONG_INIT(1UL << WORK_STRUCT_STATIC)

struct delayed_work {
struct work_struct work;


\
 
 \ /
  Last update: 2010-02-24 21:25    [from the cache]
©2003-2010