[POWERPC] Make ppc64_defconfig without CONFIG_PPC_PSERIES build
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 23 Feb 2007 03:41:41 +0000 (14:41 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 9 Mar 2007 04:03:24 +0000 (15:03 +1100)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/lib/locks.c

index 80b482ca30dfac7e8098e0d1b8cafd3ecc82656c..79d0fa3a470d9eaf4f0811652775e16c7f1634ec 100644 (file)
@@ -43,9 +43,11 @@ void __spin_yield(raw_spinlock_t *lock)
        if (firmware_has_feature(FW_FEATURE_ISERIES))
                HvCall2(HvCallBaseYieldProcessor, HvCall_YieldToProc,
                        ((u64)holder_cpu << 32) | yield_count);
+#ifdef CONFIG_PPC_SPLPAR
        else
                plpar_hcall_norets(H_CONFER,
                        get_hard_smp_processor_id(holder_cpu), yield_count);
+#endif
 }
 
 /*
@@ -72,9 +74,11 @@ void __rw_yield(raw_rwlock_t *rw)
        if (firmware_has_feature(FW_FEATURE_ISERIES))
                HvCall2(HvCallBaseYieldProcessor, HvCall_YieldToProc,
                        ((u64)holder_cpu << 32) | yield_count);
+#ifdef CONFIG_PPC_SPLPAR
        else
                plpar_hcall_norets(H_CONFER,
                        get_hard_smp_processor_id(holder_cpu), yield_count);
+#endif
 }
 #endif