From patchwork Thu Jul 13 05:40:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 107540 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1779849qge; Wed, 12 Jul 2017 22:41:33 -0700 (PDT) X-Received: by 10.98.66.198 with SMTP id h67mr11494657pfd.2.1499924493205; Wed, 12 Jul 2017 22:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499924493; cv=none; d=google.com; s=arc-20160816; b=EToCOp5o1ijbGpJj+AC3HXVm3BNvvjOxi2VaX2fBdQmdQq6hAn/RbiRuuiLeNZ1MNf UpmoKJ3R7nn6VcgV3yEbfb7x7CP7HycGxRA11g75V5ubAGI22p54C7l6vD+PjdCyTE6j G/YumYC+cRNLukDpd3n5sYhURFEwc6M6pvVs5+e4ybdcFnUprU5a7JshxhWYcfIUHT4R 5d9OAb5BSku3MCywOXP0rc29aV3RzQIqYOEu4+bSVIWoXqsEpGMmTXpadN0K8dl7yghY V8/h1+IC3ZiTfVRAe5ICw+6MYSk+Q95ocj4ejX9i3gDu/EA92sAWmcKPk9Ss+Hy0PieY Qxdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Uti1oaNAAXmutLf3KzEL/rNDdItpAJTc62N16z1+oF4=; b=Y36CzthtoAMq+IYJteFQ/A+iXHw5VMz7f6Yp4tS2JFXl24OxuUrPwMfis5jQw/SPQK j9FS/hX2OHXOwbwrB7rdx2j5j6PH/qmkKEu/Hva3fhqS7kBbo7X+iDZReYDi6oJtD4GQ C4IL4OKGaKmAUlNjmHwCdTaNltsIfn968uuu1tHRT1vxNDsAJ7MTeBViljwvz54VlQZ7 RPfV8DU8RfsdK5KDKsYE/kq8K5wtUeq46peyD57xEIlSaSC3cIlH01HZBVcgnJaneH3M 0g+NhJ3MsGy7nuAsl7BnQT4KMOmGfwp9baz+AeLyA2moh3s7KocIwq8UmvJaSAsXp7Xd +vCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=jQsKRROx; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 s71si3454587pfk.12.2017.07.12.22.41.32; Wed, 12 Jul 2017 22:41:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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.b=jQsKRROx; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1750949AbdGMFlb (ORCPT + 14 others); Thu, 13 Jul 2017 01:41:31 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:33100 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750854AbdGMFla (ORCPT ); Thu, 13 Jul 2017 01:41:30 -0400 Received: by mail-pf0-f178.google.com with SMTP id e7so23991769pfk.0 for ; Wed, 12 Jul 2017 22:41:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Uti1oaNAAXmutLf3KzEL/rNDdItpAJTc62N16z1+oF4=; b=jQsKRROxci35X0TxrJaFkBuL2aEPemQXc+EHqDri0xU6Eo0Q1wzzApwEdVPt4TBB6N TtPg0V3IgaFQ+HKN0FrmOmJqmhHP5EkDi0Htr1rDzMC+iJj/HtdfI2geEdTSpz2nAFOa oZIIuQoqlN7ocwQVfcS5OmKYZL8igjyngbmGg= 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; bh=Uti1oaNAAXmutLf3KzEL/rNDdItpAJTc62N16z1+oF4=; b=T+uwG99ihMpg/BLRlexBzJoD05gFioq8r/48AIobTu6y80hofRbp+Pgeuy7ctshrtJ plFhbiSC2YuMGCKBSgFgUeJd0QujL5BNf+ph3q2oOFG8hMpsw0BCJRW1vn8BL3B3nJPw e3pCCmjp0/Js8DVG5RQPNft2fsX4/p77XKHYIuaZM1PXUjlO2aLPaiy2UQbFsyv6avuJ uDxr+zZovwKUmTcKFrc7eyxHmsiJpKTULp8OzIoCFkz8IjcfeksK9V1didNj2t0bjsV7 B4sj1vtSgskOVXgygOlQ/UU2EsPbnKT9VtbVNwhU8WE2nIzV26VKz6CPTDsSh0Z+bEP/ WB3g== X-Gm-Message-State: AIVw112FRkfoZ48kvuG0WMJI+C9a8OwQRw6sflojInLy7/ohupwwfnnj zrr9Y7cL3Qy/jrTu X-Received: by 10.84.131.6 with SMTP id 6mr8419337pld.33.1499924489398; Wed, 12 Jul 2017 22:41:29 -0700 (PDT) Received: from localhost ([122.171.81.230]) by smtp.gmail.com with ESMTPSA id i186sm11344323pgd.55.2017.07.12.22.41.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jul 2017 22:41:28 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux@dominikbrodowski.net, Ingo Molnar , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Sudeep Holla Subject: [RFC V2 0/6] cpufreq: transition-latency cleanups Date: Thu, 13 Jul 2017 11:10:51 +0530 Message-Id: X-Mailer: git-send-email 2.13.0.71.gd7076ec9c9cb Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi Rafael, Here is the V2 and sending it as RFC this time. This series tries to cleanup the code around transition-latency and its users. Some of the old legacy code, which may not make much sense now, is dropped as well. Some code consolidation also done across governors. Based of: pm/linux-next Tested on: ARM64 Hikey board. V1->V2: - While we still get rid of the limitation of 10ms for using ondemand/conservative, but we preserve the earlier behavior where the transition latency set to CPUFREQ_ETERNAL would not allow use of ondemand/conservative governors. Thanks to Dominik for his feedback on that. -- viresh Viresh Kumar (6): cpufreq: Replace "max_transition_latency" with "dynamic_switching" cpufreq: schedutil: Set dynamic_switching to true cpufreq: governor: Drop min_sampling_rate cpufreq: Use transition_delay_us for legacy governors as well cpufreq: Cap the default transition delay value to 10 ms cpufreq: arm_big_little: Make ->get_transition_latency() mandatory Documentation/admin-guide/pm/cpufreq.rst | 8 ------- drivers/cpufreq/arm_big_little.c | 10 ++++----- drivers/cpufreq/cpufreq.c | 8 +++---- drivers/cpufreq/cpufreq_conservative.c | 6 ------ drivers/cpufreq/cpufreq_governor.c | 17 ++------------- drivers/cpufreq/cpufreq_governor.h | 3 +-- drivers/cpufreq/cpufreq_ondemand.c | 12 ----------- include/linux/cpufreq.h | 36 ++++++++++++++++++++++++-------- kernel/sched/cpufreq_schedutil.c | 12 ++--------- 9 files changed, 40 insertions(+), 72 deletions(-) -- 2.13.0.71.gd7076ec9c9cb