Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: UltraSPARC III/IIe cpufreq drivers, please test



Martin Husemann a écrit :
Ugh, the cpufreq(9) interface is very ugly.

Stupid question: instead of adding a psycho (or shizo) softc to cpuinfo_t,
why don't you just use the proper softc as cf_cookie in struct cpufreq?
	I think it could work for UltraSPARC-IIe, but not for UltraSPARC-III as 
frequency has to be independently set for each couple schizo/cpu. To 
modify energy_star register (in schizo), I have to access to energy_star 
register associated to the corresponding CPU.
	In another hand, I don't understand why cpufreq interface is registered 
once for the system and not by CPU. If it was registered by cpu, it will 
be easier to use cf_cookie.
        Regards,

        JKB


Home | Main Index | Thread Index | Old Index