From patchwork Mon Apr 29 13:24:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2500211 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id 443B9DF25A for ; Mon, 29 Apr 2013 13:26:22 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UWo5Z-00036l-2U; Mon, 29 Apr 2013 13:25:53 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UWo5K-0001JX-SV; Mon, 29 Apr 2013 13:25:38 +0000 Received: from mail-da0-x233.google.com ([2607:f8b0:400e:c00::233]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UWo59-0001HN-Hl for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2013 13:25:28 +0000 Received: by mail-da0-f51.google.com with SMTP id g27so1888628dan.24 for ; Mon, 29 Apr 2013 06:25:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=qU5ewdRpbRyGDwrzL18tJ/n2Ogweoi8ZP6LA1cwxhbs=; b=PIYQOlSy3sWBIE7mo7EvM3wPYwbZ/Vd2oHdpz4lpuHtlX4tBfFPj70YsIVTpYXPbTw jxmAB+2U7dwEuC6l3L88oecXCnD/Ob/VQ04ZoSOWMLwhjBssZdnWj/RbNe4QgwcrV6Or QrSPEg+skixplDwVWn59rQyBqwVbI+jPwbUhaxP1u/rMKLB6EDA1O6/OoRa4Y8/1Vio8 CloLGbanChEfvxeq/QwMF098tNvloo6PX60nCYUIQmeEIODzHNYQMM16ICQScnxWqRzb oOuErfDStxKGgojukLw2Dfd3koHi2yxPbFCqr9cso6buiV9lPI3S5lhk+WcZqqAqINqT VgZw== X-Received: by 10.68.7.39 with SMTP id g7mr1696805pba.146.1367241925460; Mon, 29 Apr 2013 06:25:25 -0700 (PDT) Received: from localhost ([122.172.192.131]) by mx.google.com with ESMTPSA id zv4sm24070488pbb.28.2013.04.29.06.25.20 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 29 Apr 2013 06:25:24 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 2/5] cpufreq: ARM big LITTLE DT: Return correct transition latency Date: Mon, 29 Apr 2013 18:54:45 +0530 Message-Id: <26f5713ba03a7d5ee590ce615d19578eb4395abe.1367241503.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQnhNBLauTvqAXuf5WwcCDxz4moX2RfPqnAFWpxxwkFoX8GOJRFZYm9sPxH1USxN3TVx5nUa X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130429_092527_661657_9D4AC298 X-CRM114-Status: GOOD ( 10.22 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: robin.randhawa@arm.com, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, Liviu.Dudau@arm.com, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linaro-kernel@lists.linaro.org, Steve.Bannister@arm.com, arvind.chauhan@arm.com, linux-arm-kernel@lists.infradead.org, charles.garcia-tobin@arm.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org By mistake we are returning zero for successful call to dt_get_transition_latency(), whereas we should return transition_latency. Fix it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/arm_big_little_dt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/arm_big_little_dt.c b/drivers/cpufreq/arm_big_little_dt.c index 44be311..d5ae4d2 100644 --- a/drivers/cpufreq/arm_big_little_dt.c +++ b/drivers/cpufreq/arm_big_little_dt.c @@ -78,7 +78,7 @@ static int dt_get_transition_latency(struct device *cpu_dev) of_node_put(np); of_node_put(parent); - return 0; + return transition_latency; } return -ENODEV;