From: Vincent Minet Date: Fri, 4 Jul 2014 23:51:33 +0000 (+0200) Subject: intel_pstate: Set CPU number before accessing MSRs X-Git-Tag: omap-for-v3.17/fixes-against-rc2~317^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=179e8471673ce0249cd4ecda796008f7757e5bad;p=pandora-kernel.git 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 Cc: All applicable Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed