Skip to content
  • Chanwoo Choi's avatar
    0dd25a0d
    PM / devfreq: Add governor feature flag · 0dd25a0d
    Chanwoo Choi authored
    
    
    The devfreq governor is able to have the specific flag as follows
    in order to implement the specific feature. For example, devfreq allows
    user to change the governors on runtime via sysfs interface.
    But, if devfreq device uses 'passive' governor, don't allow user to change
    the governor. For this case, define the DEVFREQ_GOV_FLAG_IMMUTABLE
    and set it to flag of passive governor.
    
    [Definition for governor flag]
    - DEVFREQ_GOV_FLAG_IMMUTABLE
      : If immutable flag is set, governor is never changeable to other governors.
    - DEVFREQ_GOV_FLAG_IRQ_DRIVEN
      : Devfreq core won't schedule polling work for this governor if value is set.
    
    [Table of governor flag for devfreq governors]
    ------------------------------------------------------------------------------
                          | simple    | perfor | power | user | passive | tegra30
    		      | ondemand  | mance  | save  | space|         |
    ------------------------------------------------------------------------------
    immutable             | X         | X      | X     | X    | O       | O
    interrupt_driven      | X(polling)| X      | X     | X    | X       | O (irq)
    ------------------------------------------------------------------------------
    
    Reviewed-by: default avatarDmitry Osipenko <digetx@gmail.com>
    Tested-by: default avatarDmitry Osipenko <digetx@gmail.com>
    Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
    0dd25a0d
    PM / devfreq: Add governor feature flag
    Chanwoo Choi authored
    
    
    The devfreq governor is able to have the specific flag as follows
    in order to implement the specific feature. For example, devfreq allows
    user to change the governors on runtime via sysfs interface.
    But, if devfreq device uses 'passive' governor, don't allow user to change
    the governor. For this case, define the DEVFREQ_GOV_FLAG_IMMUTABLE
    and set it to flag of passive governor.
    
    [Definition for governor flag]
    - DEVFREQ_GOV_FLAG_IMMUTABLE
      : If immutable flag is set, governor is never changeable to other governors.
    - DEVFREQ_GOV_FLAG_IRQ_DRIVEN
      : Devfreq core won't schedule polling work for this governor if value is set.
    
    [Table of governor flag for devfreq governors]
    ------------------------------------------------------------------------------
                          | simple    | perfor | power | user | passive | tegra30
    		      | ondemand  | mance  | save  | space|         |
    ------------------------------------------------------------------------------
    immutable             | X         | X      | X     | X    | O       | O
    interrupt_driven      | X(polling)| X      | X     | X    | X       | O (irq)
    ------------------------------------------------------------------------------
    
    Reviewed-by: default avatarDmitry Osipenko <digetx@gmail.com>
    Tested-by: default avatarDmitry Osipenko <digetx@gmail.com>
    Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Loading