Re: [PATCH -mm -v5] Separate atomic_t declaration from asm/atomic.h into asm/atomic_def.h
- From: Matthew Wilcox <matthew@xxxxxx>
- Date: Tue, 14 Oct 2008 12:47:19 -0600
On Fri, Oct 10, 2008 at 03:54:50PM -0700, Andrew Morton wrote:
I have a note here that Matthew has proposed a different way of doing
all this. I don't immediately recall the details.
Can we get a refresh on all of that please?
I didn't remember either, but having just reviewed my inbox from August,
I said that all architectures basically use:
typedef struct { volatile int counter; } atomic_t;
#ifdef CONFIG_64BIT
typedef struct { volatile long counter; } atomic64_t;
#endif
and that should just be put in <linux/atomic_types.h>.
Roman Zippel did me one better and suggested just putting it in types.h,
which works for me.
--
Matthew Wilcox Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- [PATCH -mm -v5] Separate atomic_t declaration from asm/atomic.h into asm/atomic_def.h
- From: Huang Ying
- Re: [PATCH -mm -v5] Separate atomic_t declaration from asm/atomic.h into asm/atomic_def.h
- From: Andrew Morton
- Re: [PATCH -mm -v5] Separate atomic_t declaration from asm/atomic.h into asm/atomic_def.h
- From: Ingo Molnar
- Re: [PATCH -mm -v5] Separate atomic_t declaration from asm/atomic.h into asm/atomic_def.h
- From: Andrew Morton
- [PATCH -mm -v5] Separate atomic_t declaration from asm/atomic.h into asm/atomic_def.h
- Prev by Date: [PATCH 1/1] cciss: fix regression, sysfs symlink missing
- Next by Date: Re: [PATCH 1/2] drivers/pci/hotplug/cpqphp_ctrl.c: Convert && to ||
- Previous by thread: Re: [PATCH -mm -v5] Separate atomic_t declaration from asm/atomic.h into asm/atomic_def.h
- Next by thread: Re: [PATCH -mm -v5] Separate atomic_t declaration from asm/atomic.h into asm/atomic_def.h
- Index(es):
Relevant Pages
|