summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2022-12-08 22:32:25 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2022-12-12 12:34:52 +1100
commit13959373e9c9021cc80730c7bd1242e07b10b328 (patch)
treef7d5e924910153ca3b29f6589da311ff749b20d5 /arch/powerpc
parentf24f21c4122e837fa031cc512a7f20eb8c554c5e (diff)
downloadlinux-stable-13959373e9c9021cc80730c7bd1242e07b10b328.tar.gz
linux-stable-13959373e9c9021cc80730c7bd1242e07b10b328.tar.bz2
linux-stable-13959373e9c9021cc80730c7bd1242e07b10b328.zip
powerpc/qspinlock: Fix 32-bit build
Some 32-bit configurations don't pull in the spin_begin/end/relax definitions. Fix is to restore a lost include. Reported-by: kernel test robot <lkp@intel.com> Fixes: 84990b169557 ("powerpc/qspinlock: add mcs queueing for contended waiters") Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/oe-kbuild-all/202212050224.i7uh9fOh-lkp@intel.com Link: https://lore.kernel.org/r/20221208123225.1566113-1-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/lib/qspinlock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/lib/qspinlock.c b/arch/powerpc/lib/qspinlock.c
index 1cf5d3e75250..e4bd145255d0 100644
--- a/arch/powerpc/lib/qspinlock.c
+++ b/arch/powerpc/lib/qspinlock.c
@@ -3,6 +3,7 @@
#include <linux/compiler.h>
#include <linux/export.h>
#include <linux/percpu.h>
+#include <linux/processor.h>
#include <linux/smp.h>
#include <linux/topology.h>
#include <linux/sched/clock.h>