Commit 5a9e6dcf authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[CPUFREQ] Consolidate version checking in longhaul_get_cpu_mult

reduce code duplication.
parent 38522bb5
......@@ -79,11 +79,7 @@ static int longhaul_get_cpu_mult (void)
rdmsr (MSR_IA32_EBL_CR_POWERON, lo, hi);
invalue = (lo & (1<<22|1<<23|1<<24|1<<25)) >>22;
if (longhaul_version==2) {
if (lo & (1<<27))
invalue+=16;
}
if (longhaul_version==4) {
if (longhaul_version==2 || longhaul_version==4) {
if (lo & (1<<27))
invalue+=16;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment