Skip to content
Commit c8165dc0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Zhang Rui
Browse files

PM: intel_powerclamp: off by one in start_power_clamp()



This value has already been clamped correctly to 0 through 49 in
powerclamp_set_cur_state() so this patch doesn't actually change
anything.  But we should fix it anyway for consistency.

set_target_ratio is used as an offset into an array with
MAX_TARGET_RATIO (50) elements.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 3ad9524a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment