public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] workqueues: s/2/WORK_STRUCT_STATIC/ in WORK_DATA_STATIC_INIT()
@ 2010-02-24 20:20 Oleg Nesterov
  2010-02-25  3:09 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Oleg Nesterov @ 2010-02-24 20:20 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Dmitry Torokhov, Samu Onkalo, Tejun Heo, linux-kernel

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;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 3/3] workqueues: s/2/WORK_STRUCT_STATIC/ in WORK_DATA_STATIC_INIT()
  2010-02-24 20:20 [PATCH 3/3] workqueues: s/2/WORK_STRUCT_STATIC/ in WORK_DATA_STATIC_INIT() Oleg Nesterov
@ 2010-02-25  3:09 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2010-02-25  3:09 UTC (permalink / raw)
  To: Oleg Nesterov; +Cc: Andrew Morton, Dmitry Torokhov, Samu Onkalo, linux-kernel

Hello,

On 02/25/2010 05:20 AM, Oleg Nesterov wrote:
> 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)

I already have this in my cmwq patches.

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-25  3:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24 20:20 [PATCH 3/3] workqueues: s/2/WORK_STRUCT_STATIC/ in WORK_DATA_STATIC_INIT() Oleg Nesterov
2010-02-25  3:09 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox