Message ID | 013ea5e93099865298d229e7a9906c85289d7e07.1417664938.git.viresh.kumar@linaro.org |
---|---|
State | Accepted |
Commit | 92e615ec82c0314fb480eeb19396f4ac15bf97ef |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBZF676RQKGQEVA24YKQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 901B325E8C for <linaro@patches.linaro.org>; Thu, 4 Dec 2014 04:13:25 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e53sf10496631eek.7 for <linaro@patches.linaro.org>; Wed, 03 Dec 2014 20:13:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=v5v5Vz5VB+WHElEzcs+9MFeEBVY7u3RpIlhBLEYmSVw=; b=UN3w4Or7qkCFQ3yqTfTanCXVMxZSn21Ux9HxnkiA49zypG7KSqCnGsB0JlSgffnyyg wK5D29d1NBI1YQ1XuUxFD5fbcegZiR26HnNKdAzJPbsfMEmDRdOAT/LVwqK41aTLx8xM 39bR2wrz9BMhu/l4+HpRSQNty48wefLqvVMQiT3yIrSWdI6dMpEOld9Bo6dABi5UJNLo h4YwKcju7HQH4+cCkViS54EvbspVZPvalDeWNJz0Io2P1f9xrdwRqzmnmRsQBkxAjWjS lBlM+LxGchReCIwT7ifk/1QPOFetfj54luSrz4ILxWka0dOi8rP9K8kQvztHw37eGtn3 WdiQ== X-Gm-Message-State: ALoCoQmG1v/x99ppkGG8/2+zlebDoLONcCqEsmE7Vp0DB68dwdCxK4WSmhDkJbsRaQRCfD0syPsM X-Received: by 10.112.169.101 with SMTP id ad5mr1780953lbc.1.1417666404862; Wed, 03 Dec 2014 20:13:24 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.49 with SMTP id bd17ls219339lab.14.gmail; Wed, 03 Dec 2014 20:13:24 -0800 (PST) X-Received: by 10.112.129.228 with SMTP id nz4mr5099976lbb.8.1417666404723; Wed, 03 Dec 2014 20:13:24 -0800 (PST) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id jo17si16505772lab.19.2014.12.03.20.13.24 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Dec 2014 20:13:24 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id hv19so8961735lab.14 for <patchwork-forward@linaro.org>; Wed, 03 Dec 2014 20:13:24 -0800 (PST) X-Received: by 10.152.2.165 with SMTP id 5mr7351712lav.40.1417666404639; Wed, 03 Dec 2014 20:13:24 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp781050lbc; Wed, 3 Dec 2014 20:13:23 -0800 (PST) X-Received: by 10.70.134.197 with SMTP id pm5mr12866825pdb.72.1417666402932; Wed, 03 Dec 2014 20:13:22 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id df1si18139882pdb.237.2014.12.03.20.13.22 for <multiple recipients>; Wed, 03 Dec 2014 20:13:22 -0800 (PST) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752982AbaLDENV (ORCPT <rfc822;amit.pundir@linaro.org> + 12 others); Wed, 3 Dec 2014 23:13:21 -0500 Received: from mail-pd0-f173.google.com ([209.85.192.173]:37575 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752979AbaLDENV (ORCPT <rfc822;linux-pm@vger.kernel.org>); Wed, 3 Dec 2014 23:13:21 -0500 Received: by mail-pd0-f173.google.com with SMTP id ft15so16878209pdb.32 for <linux-pm@vger.kernel.org>; Wed, 03 Dec 2014 20:13:20 -0800 (PST) X-Received: by 10.70.118.35 with SMTP id kj3mr8125943pdb.36.1417666400663; Wed, 03 Dec 2014 20:13:20 -0800 (PST) Received: from localhost ([122.166.92.172]) by mx.google.com with ESMTPSA id eo4sm21869800pbb.87.2014.12.03.20.13.19 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 03 Dec 2014 20:13:20 -0800 (PST) From: Viresh Kumar <viresh.kumar@linaro.org> To: linux-pm@vger.kernel.org, edubezval@gmail.com Cc: linaro-kernel@lists.linaro.org, rui.zhang@intel.com, amit.daniel@samsung.com, javi.merino@arm.com, Viresh Kumar <viresh.kumar@linaro.org> Subject: [PATCH V2 09/26] thermal: cpu_cooling: no need to set cpufreq_state to zero Date: Thu, 4 Dec 2014 09:41:51 +0530 Message-Id: <013ea5e93099865298d229e7a9906c85289d7e07.1417664938.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.0.3.693.g996b0fd In-Reply-To: <cover.1417664938.git.viresh.kumar@linaro.org> References: <cover.1417664938.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1417664938.git.viresh.kumar@linaro.org> References: <cover.1417664938.git.viresh.kumar@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 5378561..30e2ecb 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -499,7 +499,7 @@ __cpufreq_cooling_register(struct device_node *np, return cool_dev; } cpufreq_dev->cool_dev = cool_dev; - cpufreq_dev->cpufreq_state = 0; + mutex_lock(&cooling_cpufreq_lock); /* Register the notifier for first cpufreq cooling device */
Its already zero, we allocated cpufreq_dev with kzalloc. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/thermal/cpu_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)