Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5870351ybv; Wed, 12 Feb 2020 01:40:44 -0800 (PST) X-Google-Smtp-Source: APXvYqwvD+VwuYPYNYP0ooOhO56qPiLr6Y0qEbixZxH9ou3NsXXXMo6FFU33ibZVK1EUwUTNiYaN X-Received: by 2002:a9d:1c9c:: with SMTP id l28mr8423372ota.210.1581500444111; Wed, 12 Feb 2020 01:40:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581500444; cv=none; d=google.com; s=arc-20160816; b=f0NqnhgJaQG/ntHpgjo/+YhKYGdwmYP7D/EcbwK1vHaFqmEdwyavp6f1vXqqnfYlyo kxuAc9cGkxoVSH+Uq68OLgxjqwzEN65LHjLKpkW8XyR1XUZazJUMJN9WG4zbrYkien// ywKDlUtlw9dgqZYPcR+r/LALTsQufpX4ufuc+rGCUoBrPmjns+GIQR0WtfGjiDL+BoGa GhNScFEVaM4zinFIUpMVaZ2D7UnpUCOmOLdh/GELr0n1si/97H6/CzRP9MJT/BQu8zEt BbVaP34FIfMtGAkNc8bmGYz7MA+S6cL9Ag5et//hIM4tiQmfV41nw2wJZEfH2LTVGGll tdXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=TVHOXdZQIG1hvtkU7bEsPCeerg5kIqs/hMFqFNcg7JQ=; b=X+R7tc66XkK3u+jGu7TDljqb/0N1b93PM3DLASCduh+reKqa++Ecrg9XrJpGed6OgP UICzk0r5ANerJSrdHmkUpsPCYLtwGk//e9nD8v/CEDG89hkL7vh3YaIhj+3MrUK+9U5K DoiQl4g/i6w53s0jiKjcsdp8gSRC+pLiRIqSy88+WPvMQxTLr1mNXoTopAj6AXMBdNwa 9MoPvHssUwljWHMV8VPQHsVzMwn+GXnYbVJV/ufho8IZzYpM3xR/vyt824Osh8y2bunO QWpMbwvuvg10MlMEXtH4zg9pU65QvFBhGtlax0fyy/un2dI3vA00nrQXU17nIRD56IuE sV9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a205si3087635oif.159.2020.02.12.01.40.32; Wed, 12 Feb 2020 01:40:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728891AbgBLJj1 (ORCPT + 99 others); Wed, 12 Feb 2020 04:39:27 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:36119 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728748AbgBLJj1 (ORCPT ); Wed, 12 Feb 2020 04:39:27 -0500 Received: by mail-ot1-f66.google.com with SMTP id j20so1288542otq.3; Wed, 12 Feb 2020 01:39:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TVHOXdZQIG1hvtkU7bEsPCeerg5kIqs/hMFqFNcg7JQ=; b=MgFVvTtWfybkX/WaurDlA9sq1dsTTfieDJf//q15OBbbO0GlW5+RyhJ8SpmhaYvtkE Zxb1aFYLWqamEfHj37bpMvcjvi5E3OdSY23+Yt2HCafifN3BjjTCseJgjc6hNlPGBNFQ d7a5rx98Df1AIATFgzn552ndLacOCSbQr0LbQT2KiJQBpZFg6RgMT2rQUKmPC2JR1ieT IgWL9QWevNbNCzJIAeL7GZdJ4TEtWN6uTLlged6igijw2sMDBeLKpThXrS5YuSK9+Iff XIOte3k7juJUzPsjEiuqOXxu/W9rO9sroqSPDQ1pUdkfa7kIGhTBijisAMxn+RMCWTFq rAfg== X-Gm-Message-State: APjAAAWp+MmFWraqspUWsBYGa096WhtO45cJNLZ5Wo6hDQkAuZPnjxpU 24p45HZ+JFi9L1n5KtapY7b/9IhJqoAcV9/djkEEYlsv X-Received: by 2002:a9d:67d7:: with SMTP id c23mr8653774otn.262.1581500366103; Wed, 12 Feb 2020 01:39:26 -0800 (PST) MIME-Version: 1.0 References: <1654227.8mz0SueHsU@kreacher> In-Reply-To: <1654227.8mz0SueHsU@kreacher> From: "Rafael J. Wysocki" Date: Wed, 12 Feb 2020 10:39:13 +0100 Message-ID: Subject: Re: [PATCH 00/28] PM: QoS: Get rid of unuseful code and rework CPU latency QoS interface To: Linux PM Cc: LKML , Amit Kucheria , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 12, 2020 at 12:39 AM Rafael J. Wysocki wrote: > > Hi All, > > This series of patches is based on the observation that after commit > c3082a674f46 ("PM: QoS: Get rid of unused flags") the only global PM QoS class > in use is PM_QOS_CPU_DMA_LATENCY, but there is still a significant amount of > code dedicated to the handling of global PM QoS classes in general. That code > takes up space and adds overhead in vain, so it is better to get rid of it. > > Moreover, with that unuseful code removed, the interface for adding QoS > requests for CPU latency becomes inelegant and confusing, so it is better to > clean it up. > > Patches [01/28-12/28] do the first part described above, which also includes > some assorted cleanups of the core PM QoS code that doesn't go away. > > Patches [13/28-25/28] rework the CPU latency QoS interface (in the classic > "define stubs, migrate users, change the API proper" manner), patches > [26-27/28] update the general comments and documentation to match the code > after the previous changes and the last one makes the CPU latency QoS depend > on CPU_IDLE (because cpuidle is the only user of its target value today). > > The majority of the patches in this series don't change the functionality of > the code at all (at least not intentionally). > > Please refer to the changelogs of individual patches for details. > > Thanks! This patch series is available in the git branch at git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git cpu-latency-qos for easier access, but please note that it may be updated in response to review comments etc.