From: Sivaram Nair Date: Tue, 18 Dec 2012 12:52:50 +0000 (+0100) Subject: cpuidle: Fix finding state with min power_usage X-Git-Tag: v3.8-rc3~9^2~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e5537b30d3029d784226ab51c2b923d1155b553;p=pandora-kernel.git cpuidle: Fix finding state with min power_usage Since cpuidle_state.power_usage is a signed value, use INT_MAX (instead of -1) to init the local copies so that functions that tries to find cpuidle states with minimum power usage works correctly even if they use non-negative values. Signed-off-by: Sivaram Nair Reviewed-by: Rik van Riel Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed