arm64: move percpu cmpxchg implementation from cmpxchg.h to percpu.h
authorWill Deacon <will.deacon@arm.com>
Tue, 27 Feb 2018 10:48:31 +0000 (10:48 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 27 Mar 2018 12:15:29 +0000 (13:15 +0100)
commitc9406e514b95e825af20967430786a234d2dcabd
treee0ca1dc1470d269a0975e8b14b0e9a6ff947c3a9
parente8a2d040fee54606ff62cc1f22e14ad9b2677f15
arm64: move percpu cmpxchg implementation from cmpxchg.h to percpu.h

We want to avoid pulling linux/preempt.h into cmpxchg.h, since that can
introduce a circular dependency on linux/bitops.h. linux/preempt.h is
only needed by the per-cpu cmpxchg implementation, which is better off
alongside the per-cpu xchg implementation in percpu.h, so move it there
and add the missing #include.

Reported-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cmpxchg.h
arch/arm64/include/asm/percpu.h