Displaying 1 result from an estimated 1 matches for "max_hw_pstat".
Did you mean:
max_hw_pstate
2007 Nov 02
0
[cpfreq][PATCH][2/2] Linux support for the architectural pstate driver
...rpstate = pstate;
return 0;
}
@@ -882,41 +859,23 @@ static int fill_powernow_table_pstate(st
static int fill_powernow_table_pstate(struct powernow_k8_data *data, struct cpufreq_frequency_table *powernow_table)
{
int i;
+ u32 hi = 0, lo = 0;
+ rdmsr(MSR_PSTATE_CUR_LIMIT, hi, lo);
+ data->max_hw_pstate = (hi & HW_PSTATE_MAX_MASK) >> HW_PSTATE_MAX_SHIFT;
for (i = 0; i < data->acpi_data->state_count; i++) {
u32 index;
- u32 hi = 0, lo = 0;
- u32 fid;
- u32 did;
index = data->acpi_data->states[i].control & HW_PSTATE_MASK;
- if (index > MAX_HW_PSTATE)...