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)
commit16962e7ce1dce29e1e92d231ac7d6844d7385d54
treed98049fbd5b4f98218015bfd916e957bc94a2836
parente14eee56c2280953c6e3d24d5dce42bd90836b81
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