]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb19cd6fb4bed2eca4f0e27c8e046f3ee23135740
treee0ca1dc1470d269a0975e8b14b0e9a6ff947c3a9
parenta49d238ba8120dd3954d5a4351fdf73b35972706
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