From patchwork Wed Jul 19 10:12:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 108261 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp664710obm; Wed, 19 Jul 2017 03:13:36 -0700 (PDT) X-Received: by 10.84.178.37 with SMTP id y34mr2375420plb.223.1500459216339; Wed, 19 Jul 2017 03:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500459216; cv=none; d=google.com; s=arc-20160816; b=VsbsrxB6yTHDdN311NnAlGjdgIbCHOz0BAKIGmyFtQhII7k8kCDewUtL90KXaS3V/p gUqLhhpR8crcdZ30Et4xy0r2iyaUP5PaQxpxrh32IRRDfupkiW8dXMVC00OFSCNPA1ks tocVHiwbgWDl5G18RWlo3rBQT3ac+lLW6h39/eQUYYRxXH3G/piFS7rJUXnT35uZf2fp J5WR096iMjrHSIJb0wy94F2ipi4MmrjFDykpVbXiLiFH9KI0TlL546IRJf7MmScde1k1 MaoDftDy8BsxgAajoQex1DucmrW4W/DpVWTIahfR+FDL0nEj9bAoCQV7RV/NRwUL2dY0 xW9g== 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=Ey/mtILMnKSFbFJcQG0WjxXyE8iHL1OzEgXOQzBg0S8=; b=vexp9RNiFjVaoYP9uxIzNZjZGFDteBrbExTOBzTXXApQJ5/DLfTF/rNJyzjVL+3P3F iROiqeeMVcdB1kkjiKCwwBOUiEkcT/PzKk4SICc3jUoRWamAyP7Y0JFBnLfOJ43I/xVC oi5UMfbDu/noLcCozbMQx9un/OOkAec8ZjJtcNvUIi53HzoZROGIHA9zuUTsiaZB2B3v CylpeQG3vOZ9OBia9cAtb9Y+WAzw0mANqCZWzGPdVGcZN9KoLiZVXpdpo9AScyKcQL5p 06+DO9eAvO+gC9bfij42S5JQUWcPCQ0g4sjhngtRVtz6BiOHIyuOnTwRNyHggelUt9zl swqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=kvAmP7ax; 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 44si4052476plb.248.2017.07.19.03.13.35; Wed, 19 Jul 2017 03:13:36 -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=kvAmP7ax; 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 S932312AbdGSKNe (ORCPT + 13 others); Wed, 19 Jul 2017 06:13:34 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:36487 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932078AbdGSKNc (ORCPT ); Wed, 19 Jul 2017 06:13:32 -0400 Received: by mail-pf0-f173.google.com with SMTP id o88so18903342pfk.3 for ; Wed, 19 Jul 2017 03:13:32 -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=Ey/mtILMnKSFbFJcQG0WjxXyE8iHL1OzEgXOQzBg0S8=; b=kvAmP7axtTE7ME1703PAROfHwiRBnrEWj1s2bPh3jou3uRxcesNBMQaScIs4DiRwSA LwLTvjzmTWQLhGTmnuREwhjAmEeBFl4iGt1QWImWgBVT91bJxyHuSYIHXGJd4f6Xiqd4 LOxyLJdvGZIHVtz+SYJENKBltXHdqkD+VqTpo= 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=Ey/mtILMnKSFbFJcQG0WjxXyE8iHL1OzEgXOQzBg0S8=; b=VXRwQKK7hRkFO4zMSPV3plkWUfmH/nx7ZyTvdVbXTxaKRAyRhSa8dnXfMl+oAbM6ci K0UHhx+46csYnCng2kQAmc1zIW10zblQlbtBbzXwyRHdbzJZpaPvqCiAajWtNWSmZ/4u 1Yc1DRi6YqEF3VB+VOMYmTJs73Ef66A1Ar+xWF5t22rh8jTqS+JrBsrQxbgJf6tKmSRl OP4ebTHZuh20or6usrVRf2UptGqoCRGcdkEYts93xaY5SI74ukbswJqnZpXuy1/NDbU8 524+ZlqB/Xx4HQCNBwxne6DQdH6c43udexu8iF7wAfhQ/8i3GJkFiwrR4OLbDwnBZodS UQ2w== X-Gm-Message-State: AIVw111UuOSmtBhfTIaJEyaDwuFl+3ZdB2w1j9mOmt5chlXmhOb5UqHs ad2USI7qfwOhn83W X-Received: by 10.84.236.76 with SMTP id h12mr2438062pln.88.1500459212092; Wed, 19 Jul 2017 03:13:32 -0700 (PDT) Received: from localhost ([122.167.171.93]) by smtp.gmail.com with ESMTPSA id 124sm9592305pgi.62.2017.07.19.03.13.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jul 2017 03:13:31 -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: [PATCH V3 7/9] cpufreq: schedutil: Set dynamic_switching to true Date: Wed, 19 Jul 2017 15:42:47 +0530 Message-Id: <4bc6051ec75b42cf91810d71cc8581f4ddcf93f2.1500373914.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 89c4dd9777bb..45fcf21ad685 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -646,6 +646,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,