Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp578277imm; Wed, 1 Aug 2018 01:33:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcjEuAklKFJwkAdwvgczodRSomlEm6uuN7TEHCp810tbrAj/pVyPLBN848XSqWRZoOuuJs/ X-Received: by 2002:a63:fe02:: with SMTP id p2-v6mr14700548pgh.148.1533112432225; Wed, 01 Aug 2018 01:33:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533112432; cv=none; d=google.com; s=arc-20160816; b=Wwoldxrqj96jFE/yIUy/Al2YEYSURAcCC3l1tvugfQDE1zJ4WYiL6w1iTvuPtzHHX/ NgF5AM7hW6YyouZyEAyH+4GNoFU/E4s8CNy0uU/5RqJ/AYUGANLphT+KzbOz3StbijgH GW5q2QATKzzYyurUTUPNsVphIEG2lLvba7jMErF5/snLUZNT6m2zBUA/HOIZoZwrygb+ rm/D/dHZ6ExL7v2kqXlshge+bk5p5APPuP6hUU7nLowjHmXramXzuYKoNIrY48OxuZQ6 kugnurXJNslGt7EvFmoN06oRZVbV4KmRMG18LGN2iaKBtHrbObUvrhVZbl22KIzQqLzn d3iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :in-reply-to:subject:cc:to:user-agent:organization:from:date :message-id:content-transfer-encoding:mime-version:dkim-signature :dkim-filter:arc-authentication-results; bh=21NTEC72XCQKFqcck5LhuVKk6QB7/G3hOr2KWD5Rvi8=; b=Efj2M7XsNIsm+XzBdgPt0KaxxDa6MjAKFjMFoauZMhlcnx1x4L7oI/m538pK92bxO7 rTxfhZXghyiZqJ6sz/AOX3FKClbIyll4R31ppXOCvm/THak512WUnxzMIPx5LElkXfM9 IPYh2Mj0NRUhJaYu2FxcR+r1DjHu+UWVZ+GStI2tH9v/gEbs4ktxd9oj03ZtTJSyANaI vxsUi9h8QIk/0E8jB5291I5pErJXyEO9Ygtot5mA+UHAfdzXkLX0nhMdMOtwPu2Jpobp Z+6flIqzv7vvkqWvN8thJl7/KWULdhWPN9zJ2FshK1V8aM4rklokKhP1CASBtSCHNfew 6tdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=S045EwCS; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1-v6si15858644pgh.160.2018.08.01.01.33.37; Wed, 01 Aug 2018 01:33:52 -0700 (PDT) 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=@samsung.com header.s=mail20170921 header.b=S045EwCS; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388152AbeHAKRZ (ORCPT + 99 others); Wed, 1 Aug 2018 06:17:25 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:51357 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387502AbeHAKRZ (ORCPT ); Wed, 1 Aug 2018 06:17:25 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180801083247epoutp04d8c47297bcf48634c0411035790da8ba~GtZNg3m7L1803318033epoutp043; Wed, 1 Aug 2018 08:32:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180801083247epoutp04d8c47297bcf48634c0411035790da8ba~GtZNg3m7L1803318033epoutp043 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1533112367; bh=21NTEC72XCQKFqcck5LhuVKk6QB7/G3hOr2KWD5Rvi8=; h=Date:From:To:Cc:Subject:In-reply-to:References:From; b=S045EwCSvzW/iFmQ9fFeCqYFU545C9lYXGE4Y1GHp+nfqBFGqKgOW1N2SJy7N2ir2 NFKAZAEi6EVJu0x05XKTcCQsRkbU6MU7wRMxXVdant7JNGVdXCjXqGSk6n2Jcsfkx0 VtXbK0EC6hQTt010K6NfBreE9gyAj8bIKN+lv4vg= Received: from epsmges1p5.samsung.com (unknown [182.195.40.156]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20180801083245epcas1p331ba7a8c11c809117986bfb85510b6cf~GtZLFhr-d2987829878epcas1p3K; Wed, 1 Aug 2018 08:32:45 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 12.95.04144.C20716B5; Wed, 1 Aug 2018 17:32:45 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20180801083244epcas1p1e8a3146203aaaf1b067827fb631c77d4~GtZKyJ2oR3220132201epcas1p1p; Wed, 1 Aug 2018 08:32:44 +0000 (GMT) X-AuditID: b6c32a39-bb5ff70000001030-bd-5b61702c88ba Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id CA.C2.03704.C20716B5; Wed, 1 Aug 2018 17:32:44 +0900 (KST) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset="UTF-8" Received: from [10.113.63.77] by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PCR001VAX2KTLA0@mmp2.samsung.com>; Wed, 01 Aug 2018 17:32:44 +0900 (KST) Message-id: <5B61702C.4090702@samsung.com> Date: Wed, 01 Aug 2018 17:32:44 +0900 From: Chanwoo Choi Organization: Samsung Electronics User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 To: Matthias Kaehlcke , MyungJoo Ham Cc: Kyungmin Park , Arnd Bergmann , Greg Kroah-Hartman , Rob Herring , Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Norris , Douglas Anderson , Enric Balletbo i Serra , "Rafael J . Wysocki" , Viresh Kumar , Lee Jones , Benson Leung , Olof Johansson Subject: Re: [PATCH v5 06/12] PM / devfreq: Make update_devfreq() public In-reply-to: <20180703234705.227473-7-mka@chromium.org> X-Brightmail-Tracker: H4sIAAAAAAAAA01TbUxTVxje6b299+LWcbmgnrCxsZssmSQt3JbC0VFjNrPcZMSQ8cfZLOUO joVAP+xtzRj7wfC70ekwm5GiwFTimi5qV7FODYKl+FmFCurEmagzKmZflcEgJrb3zuiv87zv eZ437/PkHIbgzlD5TIPTiz1OqYmn5pF9Zxbp9Xq3ZC2Z/B6gp+1xGu26lyRR+O8/tagrltCi S70DFArdHARo3b5DFLrU9phGt6eGAEr+0kmh1LYYQAeujWhQ6vBdgG5+fZBC56+lKHTxwqgW bTgVo9GRKXEZJ4b2hoA4N9sOxEDrCClGb+0HYji4hRInxk9SYv+eEC1ePdumFSNjm0jxm0gQ iKnwW1WvrsIV9Viqw55C7Kx11TU47Rb+42rbhzZzWYmgFxajcr7QKTmwhV9eWaX/qKEpbY0v XCs1+dKtKkmW+eKlFR6Xz4sL612y18JbBcFoEErKDUZj+jR9tsRoTlNqcH1i/zHSfZv7ovf0 ZaoVRLP9IIuBbClsG9lA+sE8hmOjACb3Pfm/mE4XwQvUc9bTyLBGvTgM4JR/VrnQsTlwZudv aQXDEOzbMDbamGkT7CJ49MQhWuXfAnDM36tV+UWwf/dZIoNJ9l3YHU3SGUxl+g+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0239GkISwgIfEtr13oJZt Z5S4dfsf2CBOAXOJ76sms0xgFJiF5NZZCLfOQnLrAkbmVYySqQXFuem5xUYFhnmp5XrFibnF pXnpesn5uZsYgVG57bBW3w7G+0viDzEKcDAq8fCeqE6IFmJNLCuuzD3EKMHBrCTCayMTHy3E m5JYWZValB9fVJqTWnyIUZqDRUmc93besUghgfTEktTs1NSC1CKYLBMHp1QDo1fWTlXJxYcl z/dt/jWt/3PmTNFfTVF5b26cMzo+XXOD9xUef1dGd7M3Eia3Ju1XnFictk1i66bQYNu1jYvZ Zp6dH5lkX/NVL6bIoYwpO7pD0flyU8K8idUKr1smnf7cbXGoUnzCuconCpPOigXtWd6fWZuc aB7T/Ue19NqeFXOEhepW2R5hUmIpzkg01GIuKk4EAClvOgzGAgAA X-CMS-MailID: 20180801083244epcas1p1e8a3146203aaaf1b067827fb631c77d4 X-Msg-Generator: CA CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20180703234938epcas3p188a1f1bc1ba7eb819ba690485c850c79 References: <20180703234705.227473-1-mka@chromium.org> <20180703234705.227473-7-mka@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthias, On 2018년 07월 04일 08:46, Matthias Kaehlcke wrote: > Currently update_devfreq() is only visible to devfreq governors outside > of devfreq.c. Make it public to allow drivers that adjust devfreq policies > to cause a re-evaluation of the frequency after a policy change. > > Signed-off-by: Matthias Kaehlcke > Acked-by: MyungJoo Ham > Reviewed-by: Brian Norris > -- > Changes in v5: > - none > > Changed in v4: > - added 'Reviewed-by: Brian Norris ' tag > > Changes in v3: > - none > > Changes in v2: > - added 'Acked-by: MyungJoo Ham ' tag > --- > drivers/devfreq/governor.h | 3 --- > include/linux/devfreq.h | 8 ++++++++ > 2 files changed, 8 insertions(+), 3 deletions(-) > > diff --git a/drivers/devfreq/governor.h b/drivers/devfreq/governor.h > index b81700244ce3..f53339ca610f 100644 > --- a/drivers/devfreq/governor.h > +++ b/drivers/devfreq/governor.h > @@ -57,9 +57,6 @@ struct devfreq_governor { > unsigned int event, void *data); > }; > > -/* Caution: devfreq->lock must be locked before calling update_devfreq */ > -extern int update_devfreq(struct devfreq *devfreq); > - > extern void devfreq_monitor_start(struct devfreq *devfreq); > extern void devfreq_monitor_stop(struct devfreq *devfreq); > extern void devfreq_monitor_suspend(struct devfreq *devfreq); > diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h > index 7c8dce96db73..c4f84a769cb5 100644 > --- a/include/linux/devfreq.h > +++ b/include/linux/devfreq.h > @@ -222,6 +222,14 @@ extern void devm_devfreq_remove_device(struct device *dev, > extern int devfreq_suspend_device(struct devfreq *devfreq); > extern int devfreq_resume_device(struct devfreq *devfreq); > > +/** > + * update_devfreq() - Reevaluate the device and configure frequency > + * @devfreq: the devfreq device > + * > + * Note: devfreq->lock must be held > + */ > +extern int update_devfreq(struct devfreq *devfreq); > + > /* Helper functions for devfreq user device driver with OPP. */ > extern struct dev_pm_opp *devfreq_recommended_opp(struct device *dev, > unsigned long *freq, u32 flags); > Reviewed-by: Chanwoo Choi -- Best Regards, Chanwoo Choi Samsung Electronics