From patchwork Thu Dec 4 04:11:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 5435081 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AD1889F1D4 for ; Thu, 4 Dec 2014 04:13:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F18222021F for ; Thu, 4 Dec 2014 04:13:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 357A020265 for ; Thu, 4 Dec 2014 04:13:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752982AbaLDENV (ORCPT ); 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 ); Wed, 3 Dec 2014 23:13:21 -0500 Received: by mail-pd0-f173.google.com with SMTP id ft15so16878209pdb.32 for ; Wed, 03 Dec 2014 20:13:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=3nZYMj0p1Az/5Ah3drVViSSZY607ya+cBJrpw2L6ZKU=; b=PFCZZAaie7kbGk3zJSdFrjWotJpX061mqnH563ZfuqPG8uDEr2siQznsyekb63tBhd cTBzGN1yI6gLw6chBgapqeLuvn/x2Ey1lP7W8LHr4fe7C4doK33Y/vKU40HIHY2NE4e2 At2RPZhMwiv4Ff4rUuPLpSmAg4rc3l+JpFCCEmS1vqxSRP5gAc5aAutsnGHUjGfHUXli +pg/Tekx5zJNhF8GhiA4r4BXaP7pbz3/10LxVyU35ZtZ8ECKfeSWtg+Nz9RDcFeVFp2i 3MvfrEKXsJv5eZCG1qW4vWF3u8vmCHSJ9lECQdEEN6tjV11X1jO52HJ5j1WrZKE4hIQ2 1sLw== X-Gm-Message-State: ALoCoQlZK1OsXE1NPVJRhiRo+UI7yc+xaPAJORUPN63WG97J/IR7K2XuxVrGuBZWan39ZNO094Vj 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 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 03 Dec 2014 20:13:20 -0800 (PST) From: Viresh Kumar 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 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: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Its already zero, we allocated cpufreq_dev with kzalloc. Signed-off-by: Viresh Kumar --- drivers/thermal/cpu_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */