• Erwan Velu's avatar
    cpufreq: intel_pstate: Add reasons for failure and debug messages · 076b862c
    Erwan Velu authored
    The init code path has several exceptions where the driver can
    decide not to load.
    
    As CONFIG_X86_INTEL_PSTATE is generally set to Y, the return code is
    not reachable.  The initialization code is neither verbose of the
    reason why it did choose to prematurely exit, so it is difficult for
    a user to determine, on a given platform, why the driver didn't load
    properly.
    
    This patch is about reporting to the user the reason/context of why
    the driver failed to load.  That is a precious hint when debugging
    a platform.
    Signed-off-by: default avatarErwan Velu <e.velu@criteo.com>
    [ rjw: Subject & changelog, minor fixups ]
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    076b862c
intel_pstate.c 66.6 KB