Displaying 1 result from an estimated 1 matches for "powernow_table".
2007 Nov 02
0
[cpfreq][PATCH][2/2] Linux support for the architectural pstate driver
...69,7 @@ static int transition_pstate(struct powe
static int transition_pstate(struct powernow_k8_data *data, u32 pstate)
{
wrmsr(MSR_PSTATE_CTRL, pstate, 0);
- data->currfid = find_fid_from_pstate(pstate);
+ data->currpstate = 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...