src/occ_405/proc/proc_pstate.c
// Function Specification
//
// Name:  proc_pstate2freq
//
// Description:  Convert Pstate to Frequency in kHz
//
// End Function Specification
Function Specification
Name:  proc_pstate2freq

Convert Pstate to Frequency in kHz

End Function Specification
Function Specification Name : proc_pstate2freq Convert Pstate to Frequency in kHz End Function Specification
uint32_t proc_pstate2freq(Pstate i_pstate)
{
    if(i_pstate > G_oppb.pstate_min)
    {
        i_pstate = G_oppb.pstate_min;
    }
    return ( G_oppb.frequency_max_khz - (i_pstate * G_oppb.frequency_step_khz));
}
uint32_t proc_pstate2freq ( Pstate i_pstate ) { if ( i_pstate > G_oppb . pstate_min ) { i_pstate = G_oppb . pstate_min ; } return ( G_oppb . frequency_max_khz - ( i_pstate * G_oppb . frequency_step_khz ) ) ; }
Function Specification
Name:  proc_pstate2freq
Function Specification Name : proc_pstate2freq
// The higher the pstate number, the lower the frequency: // If passed in Pstate is lower than Pmin (higher pstate value), // just use Pmin. // Calculate Frequency in kHz based on Pstate