src/occ_405/proc/proc_pstate.c
// Function Specification
//
// Name:  populate_opal_static_data
//
// Description: populate the generated pstates table, and maximum
//              pstates for all possible number of active cores.
//
// End Function Specification
Function Specification
Name:  populate_opal_static_data

populate the generated pstates table, and maximum
pstates for all possible number of active cores.

End Function Specification
Function Specification Name : populate_opal_static_data populate the generated pstates table and maximum pstates for all possible number of active cores . End Function Specification
void populate_opal_static_pstates_data(void)
{
    uint16_t i; 
    for (i=0; i <= G_oppb.pstate_min; i++)
    {
        G_opal_static_table.pstates[i].pstate   = i;  
        G_opal_static_table.pstates[i].flag     = 0;  
        G_opal_static_table.pstates[i].freq_khz = proc_pstate2freq(i); 
    }
    for (i=0; i<MAX_NUM_CORES; i++)
    {
        G_opal_static_table.max_pstate[i] = G_opal_static_table.config.puturbo;
    }
}
void populate_opal_static_pstates_data ( void ) { uint16_t i ; for ( i = 0 ; i <= G_oppb . pstate_min ; i ++ ) { G_opal_static_table . pstates [ i ] . pstate = i ; G_opal_static_table . pstates [ i ] . flag = 0 ; G_opal_static_table . pstates [ i ] . freq_khz = proc_pstate2freq ( i ) ; } for ( i = 0 ; i < MAX_NUM_CORES ; i ++ ) { G_opal_static_table . max_pstate [ i ] = G_opal_static_table . config . puturbo ; } }
Function Specification
Name:  populate_opal_static_data
Function Specification Name : populate_opal_static_data
// loop variable // pstate number // flag is reserved for future use // pstate's frequency // TODO - RTC:170582 fix entries for WOF systems