Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758824Ab2J2LyN (ORCPT ); Mon, 29 Oct 2012 07:54:13 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:46629 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758795Ab2J2LyL (ORCPT ); Mon, 29 Oct 2012 07:54:11 -0400 MIME-Version: 1.0 In-Reply-To: References: <1350387889-15324-1-git-send-email-hongbo.zhang@linaro.com> <1351079900-32236-1-git-send-email-hongbo.zhang@linaro.com> <1351079900-32236-4-git-send-email-hongbo.zhang@linaro.com> Date: Mon, 29 Oct 2012 17:24:10 +0530 Message-ID: Subject: Re: [PATCH V2 3/6] Thermal: fix bug of counting cpu frequencies. From: Amit Kachhap To: Hongbo Zhang , Zhang Rui Cc: linaro-kernel@lists.linaro.org, linaro-dev@lists.linaro.org, linux-pm@vger.kernel.org, patches@linaro.org, linux-kernel@vger.kernel.org, STEricsson_nomadik_linux@list.st.com, kernel@igloocommunity.org, "hongbo.zhang" , Viresh Kumar Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1174 Lines: 29 On 24 October 2012 19:04, Viresh Kumar wrote: > On 24 October 2012 17:28, hongbo.zhang wrote: >> From: "hongbo.zhang" >> >> In the while loop for counting cpu frequencies, if table[i].frequency equals >> CPUFREQ_ENTRY_INVALID, index i won't be increased, so this leads to an endless >> loop, what's more the index i cannot be referred as cpu frequencies number if >> there is CPUFREQ_ENTRY_INVALID case. >> >> Signed-off-by: hongbo.zhang > > Good one. > > Reviewed-by: Viresh Kumar Changes looks fine. Adding thermal maintainer(Rui Zhang) in the mail list. Reviewed-by: Amit Daniel Kachhap Thanks, Amit Daniel > > _______________________________________________ > linaro-dev mailing list > linaro-dev@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/linaro-dev -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/