summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2013-09-30 22:44:31 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-17 00:56:56 +0200
commit45a428ebbf7d6a4ec77cf02fc706ecd62b261bd9 (patch)
tree28583e2e8230a7a07aeed923b691ccdb9f9a4202 /Makefile
parentcpufreq: highbank-cpufreq: Enable Midway/ECX-2000 (diff)
downloadlinux-45a428ebbf7d6a4ec77cf02fc706ecd62b261bd9.tar.xz
linux-45a428ebbf7d6a4ec77cf02fc706ecd62b261bd9.zip
cpufreq: pmac64: speed up frequency switch
Some functions on switch path use msleep() which is inaccurate, and depends on HZ. With HZ=100 msleep(1) takes actually over ten times longer. Using usleep_range() we get more accurate sleeps. I measured the "pfunc_slewing_done" polling to take 300us at max (on 2.3GHz dual-processor Xserve G5), so using 500us sleep there should be fine. With the patch, g5_switch_freq() duration drops from ~50ms to ~10ms on Xserve with HZ=100. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions