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: 9851235 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 35BF860388 for ; Wed, 19 Jul 2017 10:13:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 275292811E for ; Wed, 19 Jul 2017 10:13:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C0E328607; Wed, 19 Jul 2017 10:13:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD0692811E for ; Wed, 19 Jul 2017 10:13:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932312AbdGSKNe (ORCPT ); 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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,