From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Wed, 01 Jul 2009 12:14:19 -0500 Subject: [U-Boot] [PATCH] arm: Kirkwood: Add memory barriers to kwgbe_send/recv In-Reply-To: <200907011909.21754.sr@denx.de> References: <20090701171615.2d23daf7@marrow.netinsight.se> <200907011909.21754.sr@denx.de> Message-ID: <4A4B996B.7030803@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Stefan Roese wrote: > I know that we advertised the usage of the io accessor functions for quite > some time now. But I'm not so sure here anymore. One disadvantage of this > usage could be speed penalty by the usage of too many unnecessary barriers > (included via the accessor functions on some platforms). Hot paths (or tiny bootstraps) can be optimized if needed, but why invite screwups for the majority of code? -Scott