Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761010AbXEMX0D (ORCPT ); Sun, 13 May 2007 19:26:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756321AbXEMXZz (ORCPT ); Sun, 13 May 2007 19:25:55 -0400 Received: from mail.tmr.com ([64.65.253.246]:35602 "EHLO gaimboi.tmr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756218AbXEMXZy (ORCPT ); Sun, 13 May 2007 19:25:54 -0400 Message-ID: <46479E95.6050507@tmr.com> Date: Sun, 13 May 2007 19:26:13 -0400 From: Bill Davidsen Organization: TMR Associates Inc, Schenectady NY User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061105 SeaMonkey/1.0.6 MIME-Version: 1.0 To: Krzysztof Halasa CC: Robert Hancock , linux-kernel , Jonathan Corbet Subject: Re: [PATCH] "volatile considered harmful" document References: <4646082D.2080502@shaw.ca> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 667 Lines: 22 Krzysztof Halasa wrote: > Robert Hancock writes: > > >> You don't need volatile in that case, rmb() can be used. >> > > rmb() invalidates all compiler assumptions, it can be much slower. > Yes, why would you use rmb() when a read of a volatile generates optimal code? -- bill davidsen CTO TMR Associates, Inc Doing interesting things with small computers since 1979 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/