From patchwork Tue Jul 16 09:48:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 11045791 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3F97F746 for ; Tue, 16 Jul 2019 09:49:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31594285A7 for ; Tue, 16 Jul 2019 09:49:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24F84285B5; Tue, 16 Jul 2019 09:49:30 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable 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 20426285A7 for ; Tue, 16 Jul 2019 09:49:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728121AbfGPJtZ (ORCPT ); Tue, 16 Jul 2019 05:49:25 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35976 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731643AbfGPJtY (ORCPT ); Tue, 16 Jul 2019 05:49:24 -0400 Received: by mail-pg1-f195.google.com with SMTP id l21so9178398pgm.3 for ; Tue, 16 Jul 2019 02:49:24 -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:mime-version :content-transfer-encoding; bh=vOxxYg1gkl1a/ysoqs6BZ37K9CF/kS15FrSEdYGMrcE=; b=EpO9lcJJCleKXGgnbBcmT0vu4HaYAgr9cMkeEXTp7CyyD4yV+yFnl1mxqPgDrOOQFv uX4IGgyhvlC0Ycx0OgWkLzAlykS9IJaLFR2yukDVSE+KIOS23muUiLalQLQa03Wse+/Y FIaNNN0uwHO6LUKp+rICHDSjzUm8mrleslaGLlOHrsYK0tU9PucY0BVtOnLOBG1WYHJT Y41fadi2cSZHeYEnTHQY9LiafFF2DeAdHLwZ6m+FmkVnzFZMM3swsG+hfik7+0CzsULk CfxvI0eWRu5hr0QvUkVSUcvOiO4XnmJcvSFY/IXMPQ2Dp5U1QyJgJ6fT0ADilqS/soWL b0iw== 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:mime-version :content-transfer-encoding; bh=vOxxYg1gkl1a/ysoqs6BZ37K9CF/kS15FrSEdYGMrcE=; b=dL3+WC6HMBPWJzWOwhShxynRBIaPGVfQmSZDzd3TJubQsmcfCulSvv4PluCcUh4LoW RJA6WfUhG9xlt/VuzpFKA2ooqevXSWMiHjsscIve1DHLg18IZybQy66q+wckTMPbdpjy T+BT9Hr4ErzzkXwAss1LzJybaOQTmE/G6iMmMR9zZQcDToY2KXr9JYg3n7FYCyXFDQmg A3HthIonBp7YpilkyTQaozT0ANbnICRxc8M2EPLUYJ1GDAKMWI2avS4HYbHE1RLkCP6K BHqlR6hrJqPVKaX5NpiDcA2CRXK/+KN3qjKXO6pqqfKApYUacJobxddQR6Nr4fC6mFpx LfzQ== X-Gm-Message-State: APjAAAXVuMDd7iS/XSf5biVlPvyuyQZheB11kzug/Jg3yjTOWKvrHKHd /MWOVx/jcunk2jcvb3j/1aqvaQ== X-Google-Smtp-Source: APXvYqw5SKHgwSs1ZhYtTM+f2bW5/Eb88H6yQX28Ko/X85JMot8sov7jCBSAQXBcHVwxNzo9et7lnA== X-Received: by 2002:a65:4189:: with SMTP id a9mr7021968pgq.399.1563270563855; Tue, 16 Jul 2019 02:49:23 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id c69sm22793150pje.6.2019.07.16.02.49.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jul 2019 02:49:23 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Amit Daniel Kachhap , Benjamin Herrenschmidt , Daniel Lezcano , Eduardo Valentin , Erik Schmauss , Greg Kroah-Hartman , Javi Merino , Len Brown , "Rafael J. Wysocki" , Robert Moore , Zhang Rui Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , devel@acpica.org, dri-devel@lists.freedesktop.org, linux-acpi@vger.kernel.org, linux-doc@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 00/10] cpufreq: Migrate users of policy notifiers to QoS requests Date: Tue, 16 Jul 2019 15:18:56 +0530 Message-Id: X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, Now that cpufreq core supports taking QoS requests for min/max cpu frequencies, lets migrate rest of the users to using them instead of the policy notifiers. The CPUFREQ_NOTIFY and CPUFREQ_ADJUST events of the policy notifiers are removed as a result, but we have to add CPUFREQ_CREATE_POLICY and CPUFREQ_REMOVE_POLICY events to it for the acpi stuff specifically. So the policy notifiers aren't completely removed. Boot tested on my x86 PC and ARM hikey board. Nothing looked broken :) This has already gone through build bot for a few days now. --- viresh Viresh Kumar (10): cpufreq: Add policy create/remove notifiers video: sa1100fb: Remove cpufreq policy notifier video: pxafb: Remove cpufreq policy notifier arch_topology: Use CPUFREQ_CREATE_POLICY instead of CPUFREQ_NOTIFY thermal: cpu_cooling: Switch to QoS requests instead of cpufreq notifier powerpc: macintosh: Switch to QoS requests instead of cpufreq notifier cpufreq: powerpc_cbe: Switch to QoS requests instead of cpufreq notifier ACPI: cpufreq: Switch to QoS requests instead of cpufreq notifier cpufreq: Remove CPUFREQ_ADJUST and CPUFREQ_NOTIFY policy notifier events Documentation: cpufreq: Update policy notifier documentation Documentation/cpu-freq/core.txt | 16 +-- drivers/acpi/processor_driver.c | 44 ++++++++- drivers/acpi/processor_perflib.c | 106 +++++++++----------- drivers/acpi/processor_thermal.c | 81 ++++++++------- drivers/base/arch_topology.c | 2 +- drivers/cpufreq/cpufreq.c | 51 ++++------ drivers/cpufreq/ppc_cbe_cpufreq.c | 19 +++- drivers/cpufreq/ppc_cbe_cpufreq.h | 8 ++ drivers/cpufreq/ppc_cbe_cpufreq_pmi.c | 96 +++++++++++------- drivers/macintosh/windfarm_cpufreq_clamp.c | 77 ++++++++++----- drivers/thermal/cpu_cooling.c | 110 +++++---------------- drivers/video/fbdev/pxafb.c | 21 ---- drivers/video/fbdev/pxafb.h | 1 - drivers/video/fbdev/sa1100fb.c | 27 ----- drivers/video/fbdev/sa1100fb.h | 1 - include/acpi/processor.h | 22 +++-- include/linux/cpufreq.h | 4 +- 17 files changed, 327 insertions(+), 359 deletions(-)