Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1327868imu; Wed, 9 Jan 2019 16:15:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN5LPIK946QaAymQmU2HMIYJ9CcQI+fiMO39DdraUYEp54yYkH+HJIP3dz2wjB9hJW4YAduf X-Received: by 2002:a62:2702:: with SMTP id n2mr8195939pfn.29.1547079332054; Wed, 09 Jan 2019 16:15:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547079332; cv=none; d=google.com; s=arc-20160816; b=GLqMrCAEbUKFEsZf1v+4dis/uBYRNp1jDjFI0CZlAFHpyI6ZbacLf/WfytgiU26Znm mj2zwIxX06PhTc4g0x6VQbrKIxFornBff1ldC4zzaPuoMTd8yNJveHl0cdpUTofsZS/d b5tLI2ODJZVSDqO1wxknZ4694Sj0QfY02K1W7S4kpkhDd4gRy8YUZOTuCqmbgiqvcdNQ DZXTQUH56Gcsd81XWkdlZUsnAwO8n0LZ8B8LmAL1nU10oDeIQ6A73gKtfBNCDErT4TfG sqVJTvMLT5+dqBi3YUMovkrqZtgtc90FEBiZPMsMYUpltFyzTbJl/mHTq0JRxfaIAfPO UlhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=TWqA5aCCzVWoclWoRERTw4sDZ/VsY8UwV8+oCN/rO9o=; b=BWo96OaHmdgvcJovGEJJkc7ztXdRRxFVc0M0++ZIHY+QrmyBxdOFtFo351JE4kf68J Aiomc2URMQ4556kHjU2oG24N1bzS2nA8opVxOEjOdj6eurHY0j7eEsbN9UxF+WZqJvIe Vbj2lAWk4YJLSnCzTx8mX0L4b251oauZSmliKcPmpdVJ43FXdQBdkiwThHSKMnkvU0iX d4SbtaQX5m4nc413jsRZ6CUaflX6+qFOM6/RalngixRTgVDHOTErYRJoGxkJ6bYZ/He+ hnL7lWFfw8F1r52GEyCyCj21Azw0iWuGXMJzptYl1ZGq82QNhkgh5ehJCnXT0aVXMQw1 ccIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T+d45++X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cf16si3335400plb.227.2019.01.09.16.13.59; Wed, 09 Jan 2019 16:15:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T+d45++X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726831AbfAJABS (ORCPT + 99 others); Wed, 9 Jan 2019 19:01:18 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34541 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbfAJABS (ORCPT ); Wed, 9 Jan 2019 19:01:18 -0500 Received: by mail-wr1-f66.google.com with SMTP id j2so9489305wrw.1 for ; Wed, 09 Jan 2019 16:01:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=TWqA5aCCzVWoclWoRERTw4sDZ/VsY8UwV8+oCN/rO9o=; b=T+d45++XscdlCHWCAsA9SD95Y4D/qk4Cu1eJmM50dW38fYpqhoIf9X3ShJ+GkenZV0 Qbev/fc4EiHLNYKs9WgVT/++JitLGeooodqcyzIcZrOC/12SFxVWMxpMhnUc+VGHV70e o1OWQUlBd5NGbQlwqS2lxTOlL3Ds9vkUv2AZo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=TWqA5aCCzVWoclWoRERTw4sDZ/VsY8UwV8+oCN/rO9o=; b=MVHCWbrj96pbdgwsrVCs0GxkupKpUYer4v2+8RXxfC6zFWUtwjRyJ1nDzXErSaHSj7 615pBsbJZGb+TuivTO4S+2S/d1yjJj3n4ybL9koTdmvcOX3DniBGXX5X5sph8Jx3f3Vv kYRx3CxKzjmzM01c2R7gQi4IgMJpitBbC5UwYbYtnEWW/RZQF/hM7yelwumrA8KDw52G jbQkF0lMqFCC87iusS21ZOVYuZeMPMANgKK8muUMG1vOvwr7o9E3orxXjv218ajzPZLN rOGPQChv8iz29oC0lysR+3STMIo9Zzt46rjE69UL+Kp5Hm+5fA7nQXxAsAS/au2puCQW R47g== X-Gm-Message-State: AJcUukd04iFj9pZ37HqbA227C+EkC3HwzezA/IgSBEjyysMYghI33vVb TmFaN8j6hHdN9rxj4szDrFYoKacZTI8= X-Received: by 2002:a05:6000:12c4:: with SMTP id l4mr6662240wrx.134.1547078476478; Wed, 09 Jan 2019 16:01:16 -0800 (PST) Received: from localhost ([49.248.171.190]) by smtp.gmail.com with ESMTPSA id a12sm63151563wro.18.2019.01.09.16.01.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Jan 2019 16:01:15 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, viresh.kumar@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org (open list:CPU FREQUENCY DRIVERS) Subject: [PATCH v1 2/7] drivers: cpufreq: Add thermal_cooling_device pointer to struct cpufreq_policy Date: Thu, 10 Jan 2019 05:30:51 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Several cpufreq drivers register themselves as thermal cooling devices. Adding a pointer to struct cpufreq_policy removes the need for them to store this pointer in a private data structure. Signed-off-by: Amit Kucheria --- include/linux/cpufreq.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index c86d6d8bdfed..2496549d7573 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -95,6 +95,8 @@ struct cpufreq_policy { struct cpufreq_frequency_table *freq_table; enum cpufreq_table_sorting freq_table_sorted; + struct thermal_cooling_device *cooldev; /* Pointer to the cooling + * device if used for thermal mitigation */ struct list_head policy_list; struct kobject kobj; struct completion kobj_unregister; -- 2.17.1