]> git.baikalelectronics.ru Git - kernel.git/commit
intel_pstate: Set CPU number before accessing MSRs
authorVincent Minet <vincent@vincent-minet.net>
Fri, 4 Jul 2014 23:51:33 +0000 (01:51 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 6 Jul 2014 23:24:24 +0000 (01:24 +0200)
commit56566f4fa5a16d37e4acf83a2129207761d5e70a
treeebeb2a6091ccb06272177d147643f95ac345daa5
parenta6f09354f66fa108b37910180684595ac1f06241
intel_pstate: Set CPU number before accessing MSRs

Ensure that cpu->cpu is set before writing MSR_IA32_PERF_CTL during CPU
initialization. Otherwise only cpu0 has its P-state set and all other
cores are left with their values unchanged.

In most cases, this is not too serious because the P-states will be set
correctly when the timer function is run.  But when the default governor
is set to performance, the per-CPU current_pstate stays the same forever
and no attempts are made to write the MSRs again.

Signed-off-by: Vincent Minet <vincent@vincent-minet.net>
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c