From patchwork Thu Jul 13 05:40:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 107542 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1780084qge; Wed, 12 Jul 2017 22:41:52 -0700 (PDT) X-Received: by 10.84.254.11 with SMTP id b11mr8038002plm.250.1499924512467; Wed, 12 Jul 2017 22:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499924512; cv=none; d=google.com; s=arc-20160816; b=Kiq6k6l1WhXMtcCaZIpaBX8V7e/fySAbA/9CJl9Q5oZb/H9o7Kk7uY9QV9NHFG+4fI XJ8ep3q9hOEUueOVzWpzOXEjVb6kQxq6HemqXj3wWBCIYQR0C6yGJ0yq9zO37mT9yFm0 a0/RHnqmK++Qc5DUuSgjv3JzgPZ31UZwcrqseCyhcWXzxrvW4CU+SGXqbKQu+pH6kkhE g1dQIHqn4/Rg4LznoAvgHYE8dwOJBLL3+xapLVxMghXRG16HfnhHmVtel7LFffRFHbyF y1fRDEoO728v52eHrzg1DsMu5SaMqHQoS7fvfAiSrYmb6Sti1X+qV1nLKCcdgGZKlsLN GuLA== 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 :arc-authentication-results; bh=LUNI3klLt2OmZnZGRqKlgKgCxloe6s+01vith2z1xgU=; b=WNmclLcThN6T6eL+9g7hRGzHwQZXOra6ZlXWkBGRzUcBvNmJevM3u1GG/WmX8PEBmJ AFpjCmW6cpVihZNmp6NZ+yU8mI/46+4DBi6o6nmU9ScmA2SxW7FZtUnnECTMDaQTsPoQ PCOfR9CDVWY7APm/Ey9Y7VYtw5XryCZCKjqokO+mRQk35qf7ahTtv/wiwlDtMxqFGZOs Cqegzuhi7k68hkNS/zWRWPMeyY7a88ghNhdWqGCpKQIaQYgmVnC12UIEBwtc9KqdevVO iquCS8C07GbFPGy8Qn7yEJ5j+JYZEcdXGUBOmp/qOzaZEYXKc5rCW11bK2ZmKBGDOaMs +O0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=cfTCNJHv; 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 q6si3490263pgq.8.2017.07.12.22.41.52; Wed, 12 Jul 2017 22:41:52 -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=cfTCNJHv; 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 S1751032AbdGMFli (ORCPT + 14 others); Thu, 13 Jul 2017 01:41:38 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:33125 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751083AbdGMFlg (ORCPT ); Thu, 13 Jul 2017 01:41:36 -0400 Received: by mail-pf0-f169.google.com with SMTP id e7so23993013pfk.0 for ; Wed, 12 Jul 2017 22:41:35 -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:in-reply-to:references :in-reply-to:references; bh=LUNI3klLt2OmZnZGRqKlgKgCxloe6s+01vith2z1xgU=; b=cfTCNJHvXuz/ADxQ1PLcSR6+MtIne2L67WrXBVsyPrZaSNVodpSeCWDkrl29sleTSe F3zkoJlReG0uXLX5Axh9sIXqmZ9AuqUU8+IDPUSD4oF+USPt7V5hzAw6mytU3s8R8h2V 45keI/plED5Ad3BEuiaW7qfPrR8rNqj30RX6k= 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=LUNI3klLt2OmZnZGRqKlgKgCxloe6s+01vith2z1xgU=; b=eMUuAkGWu9Ft4Yvoqeyivi7AM+43vFZUNyZZoKc7hwk1GE2PGA2aKRmk5ChGmgho8G jiK6ZG4REHMjBQn6OIZpdbQqr3c9jIrniyTnLhTmaT5CEpkjLswaA+GIrhcKFbDAgULA Ma3VXSOSmhdQDatPYRpC8luJttu+cCYISYT+156hC0L4igffl9MWE7bFApW9cW0DD+GP 8RnQKmbVtna0KhtNpzyNNb04+WrMlY1kk+qqDktc+UtDHeJ/Whrdhiv6DVS0Z9zKFcU3 kYAMU+i8/POvC55diB5Ba4IGzB9qQ/C0C/nBPrxG3SskA3Gi/qStTqzIVp7N2/RVYcy0 1kcQ== X-Gm-Message-State: AIVw113GgFspbqAQ8SAvhcR3DaqfLZIBSwxn8zfiwgQu7690oLxzq77J 411QqJ/ZuGZgxoHp X-Received: by 10.99.104.74 with SMTP id d71mr7310839pgc.7.1499924495424; Wed, 12 Jul 2017 22:41:35 -0700 (PDT) Received: from localhost ([122.171.81.230]) by smtp.gmail.com with ESMTPSA id f24sm8784199pff.74.2017.07.12.22.41.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jul 2017 22:41:34 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Ingo Molnar , Peter Zijlstra Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux@dominikbrodowski.net, linux-kernel@vger.kernel.org Subject: [RFC V2 2/6] cpufreq: schedutil: Set dynamic_switching to true Date: Thu, 13 Jul 2017 11:10:53 +0530 Message-Id: <2b68422c8b9ecd1561cc283bb2f8fa68517f07e7.1499853492.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.13.0.71.gd7076ec9c9cb In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Set dynamic_switching to 'true' to disallow use of schedutil governor for platforms with transition_latency set to CPUFREQ_ETERNAL, as they may not want to do automatic dynamic frequency switching. Signed-off-by: Viresh Kumar --- kernel/sched/cpufreq_schedutil.c | 1 + 1 file changed, 1 insertion(+) -- 2.13.0.71.gd7076ec9c9cb diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index 076a2e31951c..ab9d7a1b43dc 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -650,6 +650,7 @@ static void sugov_limits(struct cpufreq_policy *policy) static struct cpufreq_governor schedutil_gov = { .name = "schedutil", .owner = THIS_MODULE, + .dynamic_switching = true, .init = sugov_init, .exit = sugov_exit, .start = sugov_start,