All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: cpufreq/linux/arch/arm/mach-sa1100 cpu-sa1100.c, 1.5,
@ 2004-08-29 12:49 Dominik Brodowski
  2004-08-30 12:19 ` Bruno Ducrot
  2004-08-30 14:29 ` Russell King
  0 siblings, 2 replies; 11+ messages in thread
From: Dominik Brodowski @ 2004-08-29 12:49 UTC (permalink / raw)
  To: rmk, cpufreq

> >  static struct cpufreq_driver sa1110_driver = {
> > +	.flags		= CPUFREQ_STICKY |
> > +			  CPUFREQ_PANIC_OUTOFSYNC | 		<<<<
> > +			  CPUFREQ_PANIC_RESUME_OUTOFSYNC,	<<<<
>
> Erm, _why_ ?
>
> This makes very little sense.  If you put the system to sleep at
> 147MHz and it normally boots at 206.4MHz, you'll resume at 206.4MHz.

I added PANIC_OUTOFSYNC because of the following concern: if the CPU 
clock is different from what the kernel thinks it is, the RAM and LCD
and PCMCIA and ... timings might be horribly broken, so better bail out as
soon as this critical state is detetected.

With regard to PANIC_RESUME_OUTOFSYNC:

> It's up to the kernel to reset the clock rate itself.  This is nothing
> new - cpufreq has always done this, so why are we adding this new
> restriction?

cpufreq still does this. However not during sysdev-resume state [because
notifiers can sleep], but later. This means the problematic discrepancy (see
above) is there, just for a short period of time. If you think it isn't an
issue, Bruno's patch to remove both flags is perfectly valid, otherwise
these flags do make some sense.

> And to follow that up, yes, I missed it back in June when I added
> the CPUFREQ_STICKY here.  However, I was completely unaware that
> this change had been made back in May 2004.
>
> Can we please route changes to architecture files via the architecture
> people _before_ merging them.  Pretty please?

Not sending this patch to you for discussion was an oversight, and I
apologize for not having done so. After the first patch series [April 11th]
didn't generate negative feedback, I -- incorrectly -- assumed everything
was in order and asked Dave to merge.
 
	Dominik


NB: sorry for the out-of-thread reply. Delivery of cpufreq list e-mail to my
address stopped during a vacation because my ISP bounced too much (spam)
mail.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-08-31 22:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-29 12:49 cpufreq/linux/arch/arm/mach-sa1100 cpu-sa1100.c, 1.5, Dominik Brodowski
2004-08-30 12:19 ` Bruno Ducrot
2004-08-30 13:17   ` Dominik Brodowski
2004-08-30 14:49     ` Bruno Ducrot
2004-08-30 15:01       ` Dominik Brodowski
2004-08-30 15:16         ` Bruno Ducrot
2004-08-30 16:03           ` Dominik Brodowski
2004-08-30 14:29 ` Russell King
2004-08-30 15:08   ` Dominik Brodowski
2004-08-30 16:16     ` Russell King
2004-08-31 22:23       ` Dave Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.