• David Arcari's avatar
    thermal: intel: powerclamp: Fix cpumask and max_idle module parameters · ae817e61
    David Arcari authored
    When cpumask is specified as a module parameter the value is
    overwritten by the module init routine.  This can easily be fixed
    by checking to see if the mask has already been allocated in the
    init routine.
    
    When max_idle is specified as a module parameter a panic will occur.
    The problem is that the idle_injection_cpu_mask is not allocated until
    the module init routine executes. This can easily be fixed by allocating
    the cpumask if it's not already allocated.
    
    Fixes: ebf51971 ("thermal: intel: powerclamp: Add two module parameters")
    Signed-off-by: default avatarDavid Arcari <darcari@redhat.com>
    Reviewed-by: Srinivas Pandruvada<srinivas.pandruvada@linux.intel.com>
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    ae817e61
intel_powerclamp.c 20.6 KB