diff options
author | Srinivas Pandruvada | 2015-10-15 21:34:21 +0200 |
---|---|---|
committer | Rafael J. Wysocki | 2015-10-15 22:46:33 +0200 |
commit | 8e601a9f97a00bab031980de34f9a81891c1f82f (patch) | |
tree | 9116b294513ac173b61dffe4c8daa05802072d68 /drivers/mmc/host/sdhci.c | |
parent | Linux 4.3-rc5 (diff) | |
download | kernel-qcow2-linux-8e601a9f97a00bab031980de34f9a81891c1f82f.tar.gz kernel-qcow2-linux-8e601a9f97a00bab031980de34f9a81891c1f82f.tar.xz kernel-qcow2-linux-8e601a9f97a00bab031980de34f9a81891c1f82f.zip |
cpufreq: intel_pstate: Fix divide by zero on Knights Landing (KNL)
This is a workaround for KNL platform, where in some cases MPERF counter
will not have updated value before next read of MSR_IA32_MPERF. In this
case divide by zero will occur. This change ignores current sample for
busy calculation in this case.
Fixes: b34ef932d79a (intel_pstate: Knights Landing support)
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: Kristen Carlson Accardi <kristen@linux.intel.com>
Cc: 4.1+ <stable@vger.kernel.org> # 4.1+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
0 files changed, 0 insertions, 0 deletions