From patchwork Fri Nov 28 09:44:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 41676 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3B599244C2 for ; Fri, 28 Nov 2014 09:45:16 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id y19sf3883928wgg.3 for ; Fri, 28 Nov 2014 01:45:15 -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=GI2kD/f7a39AhmKV+7Q/nWKujsW2ofsLyn3VGDsxIFM=; b=k1MWNK1wclbO6qrx2zbRHiTXx/RHSkCG3YEwH0+NDLk/tHfivDLBdu7+sI2GCXpsYI JxLWYpK0B7ALH/lTWgeZQx1+/jQVzwT6qW7hzzQFt8I0Zkf720YMdsUMSk+6AdXWp6hz A2LHy1YaxpdxrMlPiy/AcF+7tlOj7DT8ZSeR6zpkLom1hA3nxixGjQii0AnkkvbmVRnC PbBQRcpYryiUG0ybp7gHAjpJS4pQkjZrLHF3MTibxb2qgTeVHuk42RPeWQ8nDvXuMwek qL+EMs9e3rHk9utHwWXXqiYBulGPxDSvAtN95W+yBI7M/q0nqNHrbQlVXtOqDrc7HN0z +v9A== X-Gm-Message-State: ALoCoQng6UWqEOwDeM+aBFMG4PFLGQXmUNlQj93isJknjB4IGe//QxrWYVUuTTR1hkFzY8HI+cA9 X-Received: by 10.112.154.194 with SMTP id vq2mr6321336lbb.10.1417167915492; Fri, 28 Nov 2014 01:45:15 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.98 with SMTP id d2ls934306lae.19.gmail; Fri, 28 Nov 2014 01:45:15 -0800 (PST) X-Received: by 10.112.162.41 with SMTP id xx9mr42233425lbb.21.1417167915359; Fri, 28 Nov 2014 01:45:15 -0800 (PST) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id jc4si9409573lbc.137.2014.11.28.01.45.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Nov 2014 01:45:15 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id 10so5244089lbg.26 for ; Fri, 28 Nov 2014 01:45:15 -0800 (PST) X-Received: by 10.112.14.69 with SMTP id n5mr42910622lbc.34.1417167915283; Fri, 28 Nov 2014 01:45:15 -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 ew9csp60420lbc; Fri, 28 Nov 2014 01:45:14 -0800 (PST) X-Received: by 10.70.91.40 with SMTP id cb8mr72129488pdb.19.1417167913616; Fri, 28 Nov 2014 01:45:13 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vj10si15336419pbc.138.2014.11.28.01.45.12 for ; Fri, 28 Nov 2014 01:45:13 -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 S1751727AbaK1JpM (ORCPT + 12 others); Fri, 28 Nov 2014 04:45:12 -0500 Received: from mail-pd0-f182.google.com ([209.85.192.182]:52637 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751707AbaK1JpL (ORCPT ); Fri, 28 Nov 2014 04:45:11 -0500 Received: by mail-pd0-f182.google.com with SMTP id r10so6441151pdi.27 for ; Fri, 28 Nov 2014 01:45:10 -0800 (PST) X-Received: by 10.66.139.106 with SMTP id qx10mr72870015pab.138.1417167910540; Fri, 28 Nov 2014 01:45:10 -0800 (PST) Received: from localhost ([122.167.111.40]) by mx.google.com with ESMTPSA id yc4sm9446649pab.27.2014.11.28.01.45.09 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 28 Nov 2014 01:45:09 -0800 (PST) From: Viresh Kumar To: linux-pm@vger.kernel.org, edubezval@gmail.com Cc: linaro-kernel@lists.linaro.org, rui.zhang@intel.com, Viresh Kumar Subject: [PATCH 09/26] cpu_cooling: no need to set cpufreq_state to zero Date: Fri, 28 Nov 2014 15:14:03 +0530 Message-Id: <15ba799d1224df9e31165e6dfd8a8dc516232657.1417167599.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: list List-ID: 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.217.181 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: , List-Help: , List-Archive: List-Unsubscribe: , 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 59725d8..cf9d1de 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -491,7 +491,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 */