From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Cbe-oss-dev] cbe_cpufreq.c initialisation From: Benjamin Herrenschmidt To: Stephen Rothwell In-Reply-To: <20070403182037.93221d65.sfr@canb.auug.org.au> References: <20070403182037.93221d65.sfr@canb.auug.org.au> Content-Type: text/plain Date: Tue, 03 Apr 2007 18:37:31 +1000 Message-Id: <1175589451.30879.14.camel@localhost.localdomain> Mime-Version: 1.0 Cc: ppc-dev , cbe-oss-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2007-04-03 at 18:20 +1000, Stephen Rothwell wrote: > Hi all, > > In cbe_cpufreq_cpu_init, there is this code: > > max_freq = (u32*) get_property(cpu, "clock-frequency", NULL); > // we need the freq in kHz > *max_freq /= 1000; > > does this really need to modify the property value in place? No, that's obviously a bug... Ben.