From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: In-Reply-To: References: <200509090008.39692.pantelis.antoniou@gmail.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: From: Dan Malek Date: Thu, 8 Sep 2005 17:48:58 -0400 To: Kumar Gala Cc: linuxppc64-dev@ozlabs.org, linuxppc-dev@ozlabs.org, pantelis.antoniou@gmail.com, linuxppc-embedded@ozlabs.org Subject: Re: cpu features testing 32 vs 64 bit List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sep 8, 2005, at 5:20 PM, Kumar Gala wrote: >>> if (!cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) >>> __flush_icache_range(start, stop); >>> } If we #define CPU_FTR_xxx as a 0 or all 1's for processors that have or don't have these features, will the compiler be smart enough to recognize an always true or false condition and remove the test (or code as appropriate)? Thanks. -- Dan