• Viresh Kumar's avatar
    OPP: Move required opps configuration to specialized callback · 528f2d8d
    Viresh Kumar authored
    The required-opps configuration is closely tied to genpd and performance
    states at the moment and it is not very obvious that required-opps can
    live without genpds. Though we don't support configuring required-opps
    for non-genpd cases currently.
    
    This commit aims at separating these parts, where configuring genpds
    would be a special case of configuring the required-opps.
    
    Add a specialized callback, set_required_opps(), to the opp table and
    set it to different callbacks accordingly.
    
    This shouldn't result in any functional changes for now.
    Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
    Reviewed-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
    528f2d8d
of.c 39.1 KB