From patchwork Sat Nov 1 12:33:39 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Piggin X-Patchwork-Id: 6790 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 3A3C9DDF1A for ; Sat, 1 Nov 2008 23:34:01 +1100 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx2.suse.de", Issuer "CAcert Class 3 Root" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id E0703DDDEA for ; Sat, 1 Nov 2008 23:33:45 +1100 (EST) Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 41B2846470; Sat, 1 Nov 2008 13:33:40 +0100 (CET) Date: Sat, 1 Nov 2008 13:33:39 +0100 From: Nick Piggin To: paulus@samba.org, benh@kernel.crashing.org, Anton Blanchard , linuxppc-dev@ozlabs.org Subject: [patch] powerpc: smp_wmb lwsync optimisation fix Message-ID: <20081101123339.GA32055@wotan.suse.de> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.9i X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org A previous change removed __SUBARCH_HAS_LWSYNC define, and replaced it with __powerpc64__. smp_wmb() seems to be the last place not updated. Signed-off-by: Nick Piggin Index: linux-2.6/arch/powerpc/include/asm/system.h =================================================================== --- linux-2.6.orig/arch/powerpc/include/asm/system.h 2008-11-01 20:31:51.000000000 +1100 +++ linux-2.6/arch/powerpc/include/asm/system.h 2008-11-01 20:32:33.000000000 +1100 @@ -44,7 +44,7 @@ #define AT_VECTOR_SIZE_ARCH 6 /* entries in ARCH_DLINFO */ #ifdef CONFIG_SMP -#ifdef __SUBARCH_HAS_LWSYNC +#if defined(__powerpc64__) # define SMPWMB lwsync #else # define SMPWMB eieio