Re: [PATCH -queue 3/3] [loongson] 2f: add Cpufreq support

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

 



Hi,

On Wed, 2009-11-11 at 19:21 +0100, Dominik Brodowski wrote:
[...]
> > +	result = cpufreq_register_driver(&loongson2_cpufreq_driver);
> > +
> > +	if (!result && !nowait) {
> > +		saved_cpu_wait = cpu_wait;
> > +		cpu_wait = loongson2_cpu_wait;
> > +	}
> > +
> > +	cpufreq_register_notifier(&loongson2_cpufreq_notifier_block,
> > +				  CPUFREQ_TRANSITION_NOTIFIER);
> 
> IMO you should register the transition notifier before register_driver(),
> else there's a small window where a change may be initiate which is not
> notified...
> 

Will adjust them later, thanks!

Regards,
	Wu Zhangjin



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux