cbe_cpufreq.c initialisation

Stephen Rothwell sfr at canb.auug.org.au
Tue Apr 3 18:20:37 EST 2007


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?

--
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070403/36833a29/attachment.pgp>


More information about the Linuxppc-dev mailing list