[CPUFREQ] powernow-k8: Don't try to transition if the pstate is incorrect
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 16 Jun 2011 19:36:40 +0000 (15:36 -0400)
committerDave Jones <davej@redhat.com>
Thu, 16 Jun 2011 20:31:13 +0000 (16:31 -0400)
commitfbb5b89eabea5ae7d621b7861863159560d8faa4
tree51e3d877cb3457bcd801175fb455927fd52f2d2b
parenta9d3d2068064b7a6395871a49616d3784f802d50
[CPUFREQ] powernow-k8: Don't try to transition if the pstate is incorrect

This patch augments the pstate transition code to error out
(instead of returning 0) when an incorrect pstate is provided.

Suggested-by: Borislav Petkov <bp@alien8.de>
CC: andre.przywara@amd.com
CC: Mark.Langsdorf@amd.com
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/powernow-k8.c