]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Estimate G5 cpufreq transition latency
authorNick Piggin <npiggin@suse.de>
Thu, 19 Feb 2009 07:07:41 +0000 (07:07 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Mar 2009 06:10:13 +0000 (17:10 +1100)
commit8430ab2932457d1743aca4d83c13c50a13397ec9
treed98049fbd5b4f98218015bfd916e957bc94a2836
parent258836c3001eb0616cf64386ff8e3a37b4ac7508
powerpc: Estimate G5 cpufreq transition latency

Setting G5's cpu frequency transition latency to CPUFREQ_ETERNAL stops
ondemand governor from working. I measured the latency using sched_clock
and haven't seen much higher than 11000ns, so I set this to 12000ns for
my configuration. Possibly other configurations will be different?
Ideally the generic code would be able to measure it in case the platform
does not provide it.

But this simple patch at least makes it throttle again.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powermac/cpufreq_64.c