Displaying 1 result from an estimated 1 matches for "cpu_hw_pstate".
2007 Nov 02
0
[cpfreq][PATCH][2/2] Linux support for the architectural pstate driver
...HW_PSTATE_DID_MASK) >> HW_PSTATE_DID_SHIFT;
+static u32 find_khz_freq_from_pstate(struct cpufreq_frequency_table *data, u32 pstate)
+{
+ return data[pstate].frequency;
}
/* Return the vco fid for an input fid
@@ -139,9 +118,7 @@ static int query_current_values_with_pen
if (cpu_family == CPU_HW_PSTATE) {
rdmsr(MSR_PSTATE_STATUS, lo, hi);
i = lo & HW_PSTATE_MASK;
- rdmsr(MSR_PSTATE_DEF_BASE + i, lo, hi);
- data->currfid = lo & HW_PSTATE_FID_MASK;
- data->currdid = (lo & HW_PSTATE_DID_MASK) >> HW_PSTATE_DID_SHIFT;
+ data->currpstate = i;
return 0;
}
do {...