···4141 * We only have to have statically allocated lppaca structs on4242 * legacy iSeries, which supports at most 64 cpus.4343 */4444-#ifdef CONFIG_PPC_ISERIES4545-#if NR_CPUS < 644646-#define NR_LPPACAS NR_CPUS4747-#else4848-#define NR_LPPACAS 644949-#endif5050-#else /* not iSeries */5144#define NR_LPPACAS 15252-#endif534554465547/* The Hypervisor barfs if the lppaca crosses a page boundary. A 1k
+2-3
arch/powerpc/include/asm/spinlock.h
···2323#ifdef CONFIG_PPC642424#include <asm/paca.h>2525#include <asm/hvcall.h>2626-#include <asm/iseries/hv_call.h>2726#endif2827#include <asm/asm-compat.h>2928#include <asm/synch.h>···9495 * value.9596 */96979797-#if defined(CONFIG_PPC_SPLPAR) || defined(CONFIG_PPC_ISERIES)9898+#if defined(CONFIG_PPC_SPLPAR)9899/* We only yield to the hypervisor if we are in shared processor mode */99100#define SHARED_PROCESSOR (get_lppaca()->shared_proc)100101extern void __spin_yield(arch_spinlock_t *lock);101102extern void __rw_yield(arch_rwlock_t *lock);102102-#else /* SPLPAR || ISERIES */103103+#else /* SPLPAR */103104#define __spin_yield(x) barrier()104105#define __rw_yield(x) barrier()105106#define SHARED_PROCESSOR 0