From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.lixom.net (lixom.net [66.141.50.11]) by ozlabs.org (Postfix) with ESMTP id ADD7367C2A for ; Sat, 14 Oct 2006 12:11:42 +1000 (EST) Date: Fri, 13 Oct 2006 21:11:08 -0500 From: Olof Johansson To: Benjamin Herrenschmidt Subject: Re: [PATCH 1/5] powerpc: consolidate feature fixup code Message-ID: <20061013211108.6bf16fea@pb15> In-Reply-To: <1160726663.4792.222.camel@localhost.localdomain> References: <1160726663.4792.222.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 13 Oct 2006 18:04:22 +1000 Benjamin Herrenschmidt wrote: > There are currently two versions of the functions for applying the > feature fixups, one for CPU features and one for firmware features. In > addition, they are both in assembly and with separate implementations > for 32 and 64 bits. identify_cpu() is also implemented in assembly and > separately for 32 and 64 bits. > > This patch replaces them with a pair of C functions. The call sites are > slightly moved on ppc64 as well to be called from C instead of from > assembly, though it's a very small change, and thus shouldn't cause any > problem. > > Signed-off-by: Benjamin Herrenschmidt Acked-by: Olof Johansson