From patchwork Mon Mar 2 17:17:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javi Merino X-Patchwork-Id: 5916011 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 546209F380 for ; Mon, 2 Mar 2015 17:19:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8A48C201F2 for ; Mon, 2 Mar 2015 17:19:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B300420166 for ; Mon, 2 Mar 2015 17:19:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755784AbbCBRSt (ORCPT ); Mon, 2 Mar 2015 12:18:49 -0500 Received: from foss.arm.com ([217.140.101.70]:48017 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754577AbbCBRSs (ORCPT ); Mon, 2 Mar 2015 12:18:48 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3E289EA; Mon, 2 Mar 2015 09:19:06 -0800 (PST) Received: from collaborate-mta1.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTP id ED0CB3F5FA; Mon, 2 Mar 2015 09:18:47 -0800 (PST) Received: from e104805.cambridge.arm.com (e104805.cambridge.arm.com [10.2.131.108]) by collaborate-mta1.arm.com (Postfix) with SMTP id 14C8813F815; Mon, 2 Mar 2015 11:18:43 -0600 (CST) Received: by e104805.cambridge.arm.com (sSMTP sendmail emulation); Mon, 02 Mar 2015 17:18:43 +0000 From: Javi Merino To: edubezval@gmail.com, rui.zhang@intel.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, punit.agrawal@arm.com, lina.iyer@linaro.org, broonie@kernel.org, tixy@linaro.org, Kapileshwar Singh Subject: [PATCH v3 5/5] thermal: cpu_cooling: update the cpu device when cpufreq updates the policy cpu Date: Mon, 2 Mar 2015 17:17:23 +0000 Message-Id: <1425316643-31991-6-git-send-email-javi.merino@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1425316643-31991-1-git-send-email-javi.merino@arm.com> References: <1425316643-31991-1-git-send-email-javi.merino@arm.com> 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=unavailable 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 From: Kapileshwar Singh When cpufreq changes the policy cpu, we need to update our cached cpu device accordingly. Cc: Zhang Rui Cc: Eduardo Valentin Signed-off-by: Kapileshwar Singh --- drivers/thermal/cpu_cooling.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index c4974144c787..e306d6bc3cf1 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -269,6 +269,9 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb, mutex_unlock(&cooling_cpufreq_lock); break; + case CPUFREQ_UPDATE_POLICY_CPU: + update_cpu_device(policy->cpu); + break; case CPUFREQ_CREATE_POLICY: update_cpu_device(policy->cpu); break;