Re: [profile]: [21/23] use atomic_t for prof_buffer

From: David S. Miller
Date: Tue Jun 22 2004 - 16:20:50 EST


On Tue, 22 Jun 2004 13:16:54 -0700
William Lee Irwin III <wli@xxxxxxxxxxxxxx> wrote:

> On Tue, 22 Jun 2004 08:17:55 -0700 William Lee Irwin III <wli@xxxxxxxxxxxxxx> wrote:
> >> Convert prof_buffer to an array of atomic_t's.
>
> On Tue, Jun 22, 2004 at 01:01:16PM -0700, David S. Miller wrote:
> > Part of a data type exported to userspace, is it not?
> > Thus, is it really valid to change it like this?
>
> They're copied raw to userspace now and casted to atomic_t for all
> modifications except for sparc32, arm, h8300, m68k, and m68knommu,
> where it's still equivalent (the atomic operations just do normal
> arithmetic under hashed locks or with ll/sc or other easily zennable
> asm), so there is no change. Or did I miss an arch?

That sets my mind at ease, looks good.
-
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/