cpufreq / intel_pstate: Do not load on VM that does not report max P state.
authorDirk Brandewie <dirk.brandewie@gmail.com>
Tue, 5 Mar 2013 22:15:26 +0000 (14:15 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Mar 2013 22:40:11 +0000 (23:40 +0100)
commitd3929b832833db870af72479666fa4e4d043e02e
tree69f897201f80becc05d9a13b3a53a198b96b3ec4
parent907cc908108b16ae87b7165be992511c968159f0
cpufreq / intel_pstate: Do not load on VM that does not report max P state.

It seems some VMs support the P state MSRs but return zeros. Fail
gracefully if we are running in this environment.

References: https://bugzilla.redhat.com/show_bug.cgi?id=916833
Reported-by: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c