sh: Use the atomic_t "counter" member
authorMatt Fleming <matt@console-pimps.org>
Tue, 20 Jan 2009 21:14:38 +0000 (21:14 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 29 Jan 2009 02:57:10 +0000 (11:57 +0900)
commit84fdf6cda30df72994baa2496da86787fb44cbb4
tree808758a7b2507ea1f7ddfb07c06f3b2a41b68ed6
parent42990701f938b9318e46102d9919ceb28e5b0e6d
sh: Use the atomic_t "counter" member

Now that atomic_t is a generic opaque type for all architectures, it is
unwise to use intimate knowledge of its internals when manipulating it.

Instead of relying on the "counter" member being at offset 0 from the
beginning of an atomic_t, explicitly reference the member. This guards
us from any changes to the layout of the beginning of the atomic_t type.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/atomic-irq.h