[CPUFREQ] powernow-k8: read P-state from HW
authorNaga Chumbalkar <nagananda.chumbalkar@hp.com>
Thu, 11 Jun 2009 15:26:48 +0000 (15:26 +0000)
committerDave Jones <davej@redhat.com>
Mon, 15 Jun 2009 15:49:42 +0000 (11:49 -0400)
commit532cfee6ba0a8efcf7c3ce38b9881292d79d516e
treef27ca50e349d890aa5853cc0a5ca49d8e6a5e116
parentb394f1dfc070e6f50f5f33694000815e50ef319d
[CPUFREQ] powernow-k8: read P-state from HW

By definition, "cpuinfo_cur_freq" should report the value from HW. So, don't
depend on the cached value. Instead read P-state directly from HW, while
taking into account the erratum 311 workaround for Fam 11h processors.

Cc: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: Langsdorf, Mark <mark.langsdorf@amd.com>
Cc: Thomas Renninger <trenn@suse.de>
Signed-off-by: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
Reviewed-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Tested-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Acked-by: Langsdorf, Mark <mark.langsdorf@amd.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Dave Jones <davej@redhat.com>
arch/x86/kernel/cpu/cpufreq/powernow-k8.c