parisc: fix missing cmpxchg file error from system.h split
authorPaul Gortmaker <[email protected]>
Sun, 1 Apr 2012 20:38:42 +0000 (16:38 -0400)
committerLinus Torvalds <[email protected]>
Mon, 2 Apr 2012 21:41:26 +0000 (14:41 -0700)
commit9e5228ce0b9619bde7dcd6c51fb26e2401cfe81a
tree4fdfdd44fbbf3e62cb4a9691dd537955ee91a072
parent1512cdc3572dac34a1809764f9a646cde7e82407
parisc: fix missing cmpxchg file error from system.h split

Commit b4816afa3986 ("Move the asm-generic/system.h xchg()
implementation to asm-generic/cmpxchg.h") introduced the concept of
asm/cmpxchg.h but the parisc arch never got one.  Fork the cmpxchg
content out of the asm/atomic.h file to create one.

Some minor whitespace fixups were done on the block of code that created
the new file.

Cc: "James E.J. Bottomley" <[email protected]>
Cc: Helge Deller <[email protected]>
Signed-off-by: Paul Gortmaker <[email protected]>
Acked-by: David Howells <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/parisc/include/asm/atomic.h
arch/parisc/include/asm/cmpxchg.h [new file with mode: 0644]