Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1966477imm; Sun, 27 May 2018 21:58:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp0/9U2f7UWXuqLS17PmwQpDCmFCMo712uzcbAFFdXhHRkLaPlv7va7tb9FAkSe/JRBZEKZ X-Received: by 2002:a17:902:6ac3:: with SMTP id i3-v6mr12009370plt.378.1527483497778; Sun, 27 May 2018 21:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527483497; cv=none; d=google.com; s=arc-20160816; b=Nt6Xwbxue/BdyHtPV38IuEq5/XYfJ03Y9TN8i3EY4UQ1bAnxmo+BULca7jn+3fI1RW 80q4HyU4qyfR2fiJexzPhDIxfrEnEyh8Rbh06TYeKFEyQfi3qSx04OUXwohHF96AVRRL qgogKKdV4Ljkf5RW6piRqHqk0XcgaHV/bkNlQYibqQrAwTh8oZGUplFpY4qCTUjhzD3D tVQnPaLmeF/tHD8C3vIrmLPmrBlpY7Sr7xUliVoUJRHeGBvE1eOTzjoNh+Rs9WQnnHsA /xQ/4/87D9+gAJRRNVgF5z/DyIRlpb6eptIKKkJhqeIkuOwIvYyMpJLzFIlirMNmZEKj ShMw== 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 :content-transfer-encoding:date:message-id:in-reply-to:cc:from :reply-to:subject:mime-version:to:dkim-signature:dkim-filter :arc-authentication-results; bh=lWrVX1G922y193Sb3k03NLeX7MMuggunu8PsegcC9Sc=; b=J4ussHjhEaFYYt1m0ODyezV4KxHZvzrlFyxnskdgNsTsH4l0pZR+toOenLFMqTLaRB M+2lZV7ATG6S2iHeMfqgRiVEbUBj2UKEXRFUdI8Lg4FWZExDErqh3aUxs+KnXAKqbiLG FwSUpL0HY+Oaco0OZt1DzDQNhqYY26kkR9CBh/VDygwurCz4474XoY/OZM6W0LdDssUS q/ykBMuVEkiqPR2I2fMzMdTasKu9Od2CjO2LjvqMghf5YQLRB3BL6urWEFdgupjRLT6T +OoRCA1kIx62+lciaWadGzUHS+oUWTH7ouURA2seI2TbIeRE5TiuAlykpZhP0InmpYzf wS/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=MIYLpKIJ; 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 u8-v6si28970885plh.22.2018.05.27.21.58.02; Sun, 27 May 2018 21:58:17 -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=MIYLpKIJ; 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 S1753031AbeE1E5y (ORCPT + 99 others); Mon, 28 May 2018 00:57:54 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:57901 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751183AbeE1E5v (ORCPT ); Mon, 28 May 2018 00:57:51 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20180528045749epoutp0122b2fd3cbc16183cd7a9ae3d70b7317a~yth9Y7MEC2200622006epoutp01j for ; Mon, 28 May 2018 04:57:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20180528045749epoutp0122b2fd3cbc16183cd7a9ae3d70b7317a~yth9Y7MEC2200622006epoutp01j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1527483469; bh=lWrVX1G922y193Sb3k03NLeX7MMuggunu8PsegcC9Sc=; h=To:Subject:Reply-To:From:CC:In-Reply-To:Date:References:From; b=MIYLpKIJbQQT2EKWrwFVcvH/f8LO/NL37VwxgXdqd1VoNWpkwBKCmyO+T2p9cp2zd nMnwDsDXwys3lEXXoh5X/+4IaeIhlRmBHqED8tUt512nfDGHuR3An2eCfiLZrEUteY C1SYEaC4Wk3bbpSRXEIlMgNgSPnD4fCbho35qK0s= Received: from epsmges1p5.samsung.com (unknown [182.195.40.158]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20180528045746epcas1p2159e079d3921fe40222dc9cca91d1214~yth6_OHEi2757427574epcas1p2O; Mon, 28 May 2018 04:57:46 +0000 (GMT) X-AuditID: b6c32a39-24dff7000000106b-41-5b0b8c48474a Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id DD.AE.04203.84C8B0B5; Mon, 28 May 2018 13:57:44 +0900 (KST) To: undisclosed-recipients:; Mime-Version: 1.0 Subject: RE: [PATCH 04/11] PM / devfreq: Remove redundant frequency adjustment from governors Reply-To: myungjoo.ham@samsung.com From: MyungJoo Ham CC: Kyungmin Park , Chanwoo Choi , 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 , Matthias Kaehlcke X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <20180525203043.249193-5-mka@chromium.org> X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20180528045744epcms1p115f761df5eff88a1648639385425f02b@epcms1p1> Date: Mon, 28 May 2018 13:57:44 +0900 X-CMS-MailID: 20180528045744epcms1p115f761df5eff88a1648639385425f02b Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 101P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKJsWRmVeSWpSXmKPExsWy7bCmnq5HD3e0wb3PEhZ/Jx1jt9j08T2r xctDmhbXvzxntZh/5ByrxdllB9ksmhevZ7M42/SG3eLyrjlsFp97jzBaLL1+kcni84bHjBat e4+wO/B6rJm3htHj969JjB6zGy6yeGxa1cnmsX/uGnaPvi2rGD0+b5ILYI9KtclITUxJLVJI zUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wBulZJoSwxpxQoFJBYXKyk b2dTlF9akqqQkV9cYqsUbWhopGdoYK5nZASkjWOtjEyBShJSM6a+f8xcsJ+1omf3BbYGxiMs XYycHBICJhJzFt9i62Lk4hAS2MEo8ebYUzaQhIiAjMTc2Y9Zuxg5OHgFBCX+7hAGMYUF4iVW njQHqRASUJJouLmPGcQWFtCX6HiwjRHEZhPQldi64S4LyEhmgSUsEks2/meE2MUrMaP9KdRe aYnty7eCxTkFzCWWre1mh4iLStxc/RbOfn9sPlSviETrvbPMELagxIOfu6HiUhJP3i6Eqq+X uP55ERPIYgmBCYwSv2/8h0roSzy6MhvsL14BX4lrW36AxVkEVCVWHXgCNdRFYkPHIrChzALy EtvfzmEGeZhZQFNi/S59mPsbNv5mR2czC/BJvPvawwoT3zHvCROErSZxaPcSqHoZidPTF0Kt 8pDYsvU56wRGxVmI0J2FZPEshMULGJlXMYqlFhTnpqcWGxaY6hUn5haX5qXrJefnbmIEJ1kt yx2Mx875HGIU4GBU4uFt+M0VLcSaWFZcmXuIUYKDWUmEl0sXKMSbklhZlVqUH19UmpNafIjR FOj/icxSosn5wAyQVxJvaGpkbGxsYWJoZmpoqCTO22b+L0pIID2xJDU7NbUgtQimj4mDU6qB 0a5zovo6A9OYKo2EEO5HUVyFjhKbC/as9eg++vvvUrVVfzdemyB4+8oWIfmYgkdFewPDErf5 qv1868DAmMIQvY/bp/yfTh3PjA7d9l3hZ63i5pZdvSdjtuds+6kgzlUcr/6G/+v8POlmto78 M/HJIRdPqVxf9IHJ4Ya/ta9y82We94K7hWd9UWIpzkg01GIuKk4EAMZS1a/IAwAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20180525203124epcas2p2db3f1996b33348f19a6a91cee55abb0b References: <20180525203043.249193-5-mka@chromium.org> <20180525203043.249193-1-mka@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > The userspace and simpleondemand governor determine a target frequency and > then adjust it according to the df->min/max_freq limits that might have > been set by user space. This adjustment is redundant, it is done in > update_devfreq() for any governor, right after returning from > governor->get_target_freq(). > > Signed-off-by: Matthias Kaehlcke > --- > drivers/devfreq/governor_simpleondemand.c | 5 ----- > drivers/devfreq/governor_userspace.c | 16 ++++------------ > 2 files changed, 4 insertions(+), 17 deletions(-) > Yes, indeed. Governors are no longer required to be aware of min/max freq. Acked-by: MyungJoo Ham