• Imre Deak's avatar
    drm/i915: sanitize enable_rc6 option · e6069ca8
    Imre Deak authored
    Atm, an invalid enable_rc6 module option will be silently ignored, so
    emit an info message about it. Doing an early sanitization we can also
    reuse intel_enable_rc6() in a follow-up patch to see if RC6 is actually
    enabled. Currently the caller would have to filter a non-zero return
    value based on the platform we are running on. For example on VLV with
    i915.enable_rc6 set to 2, RC6 won't be enabled but atm
    intel_enable_rc6() would still return 2 in this case.
    
    v2:
    - simplify the platform check condition (Ville)
    Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
    Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    e6069ca8
intel_pm.c 176 KB