From: Dan Carpenter Date: Thu, 24 Jan 2013 08:51:22 +0000 (+0000) Subject: PM: intel_powerclamp: off by one in start_power_clamp() X-Git-Tag: v3.9-rc1~38^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8165dc0ea75855b0bff6e5edbe4957b8a63d021;p=pandora-kernel.git 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: Dan Carpenter Signed-off-by: Zhang Rui --- Reading git-diff-tree failed