Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5913186ybv; Wed, 12 Feb 2020 02:36:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxw39fadk/o8KoUJCH5f93sm1fic+z9SD4pXlkAy0/Nsx7uk2RK+tbvt96xxU7LhRLf7Ic2 X-Received: by 2002:a05:6830:1e5c:: with SMTP id e28mr8553073otj.163.1581503766894; Wed, 12 Feb 2020 02:36:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581503766; cv=none; d=google.com; s=arc-20160816; b=P2okaEjjsQCLsCHJFOGpvqWECe5LIqfy3Ue1/nZQUsjEnKlMqzEkVrtn+krDXbHTeV bmPjO04BzmX351MulH8t4rrmK78UVBB5Hq1J9vXNt73Lu+6WPSkNnrrYHWTUtQFDHz+J QjjmUlwBaMs7tsVajuiPFuAYP/1G3Tu5y22jRIwl41MeEm4gJBBNCwxv+UPNCi7IQR7m 7IRKY8HiWFrki4N44lvUtPcX23UIx47wQrbTjIy4KShb0TDSmlg8wAufmrgqjBkR/Nt0 5qWZ58EQDkNDedgl/xSXa1A9lnyz2OQMYO5YgbmOtemlIz1PkuX2HPDgmzMzeHwewbJO TZkA== 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=NnnbDSzoop0s0gj0miT73Peda0TDZhvlDkQKNkLxkbs=; b=K0vVYMS+R982A4psJxwR525KGRpmMCQL3wooKSemO41aqq8zBzjAZH/ZGnOUk2l0wf 4niojEHVqbNDph6sC9ZnHWq03uKIbiNnpT4TB/W+Hwu1bgXKFdvU6n2/+J2E7JLBIbcz kpqQ9Qx6wneotHF8COTN0LjYecssWSe5rBDKQbh0sgBI9nU7WO2zd5DeVcG3S7Y3WLZb TR3ZtszxHWufaDP+uaAtxYxg3SoVBqwwd1zS8eP6H09bZQLG2MN61JmLG7V+BpCU6thD 62eUh++EDxdLlyAzeT3S2elh9KDku8YMVw3HA0OQ7X+MkGaI8UEMFwg1nXdMD6p5yC7U iVBg== 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 h9si27943otb.49.2020.02.12.02.35.53; Wed, 12 Feb 2020 02:36:06 -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 S1727558AbgBLKfj (ORCPT + 99 others); Wed, 12 Feb 2020 05:35:39 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:35740 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727361AbgBLKfi (ORCPT ); Wed, 12 Feb 2020 05:35:38 -0500 Received: by mail-oi1-f196.google.com with SMTP id b18so1567037oie.2; Wed, 12 Feb 2020 02:35:36 -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=NnnbDSzoop0s0gj0miT73Peda0TDZhvlDkQKNkLxkbs=; b=LOyIbD3I3b5JwiL+mGbgzmuh3mR/H8dkgkps/koXX6WCvPSSHPdeGxhFcPIXh6PnG3 SPfhexHgQaAB1m029SjjqGXPRh1FP89Ml6a5c6CUuxJjXmUlEtqsBliZHsUjv8k47CN+ bgwc/kddOwkRb9Q6EnQuIGnoEbUEOFpoITuuG27D9qg5mUk7xes+liNC+QuMDln+QcCW SdaJPo2C88L72iBTClz755t3MZM49u8HBXGI35InZW5wfdtqLpWDtZSCVTHDN9vTY70M SqXmsd3V/J2rdAXJbta+/d9g9rcMkMvjaot9/pLhGRErTGNQjTPDZPco1gJmUrDP6JfR /EKA== X-Gm-Message-State: APjAAAVnTC/d362cp49tGDSvfQmJOJKO1rp1T+5rp8ByqCKF6MDvB5/U VSmizxSLNaPBS1Fi+Al9Rgf3DYsv4OQg7bJgkWimchiR X-Received: by 2002:a54:4e96:: with SMTP id c22mr5929326oiy.110.1581503736425; Wed, 12 Feb 2020 02:35:36 -0800 (PST) MIME-Version: 1.0 References: <1654227.8mz0SueHsU@kreacher> <2339403.frKpfgBVMR@kreacher> In-Reply-To: <2339403.frKpfgBVMR@kreacher> From: "Rafael J. Wysocki" Date: Wed, 12 Feb 2020 11:35:25 +0100 Message-ID: Subject: Re: [PATCH 22/28] drivers: tty: Call cpu_latency_qos_*() instead of pm_qos_*() To: linux-serial@vger.kernel.org Cc: Linux PM , LKML , Amit Kucheria , Greg Kroah-Hartman , "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:40 AM Rafael J. Wysocki wrote: > > From: "Rafael J. Wysocki" > > Call cpu_latency_qos_add/update/remove_request() instead of > pm_qos_add/update/remove_request(), respectively, because the > latter are going to be dropped. > > No intentional functional impact. > > Signed-off-by: Rafael J. Wysocki Please note that the whole series is available here: https://lore.kernel.org/linux-pm/1654227.8mz0SueHsU@kreacher/ > --- > drivers/tty/serial/8250/8250_omap.c | 7 +++---- > drivers/tty/serial/omap-serial.c | 9 ++++----- > 2 files changed, 7 insertions(+), 9 deletions(-) > > diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/8250_omap.c > index 19f8d2f9e7ba..76fe72bfb8bb 100644 > --- a/drivers/tty/serial/8250/8250_omap.c > +++ b/drivers/tty/serial/8250/8250_omap.c > @@ -569,7 +569,7 @@ static void omap8250_uart_qos_work(struct work_struct *work) > struct omap8250_priv *priv; > > priv = container_of(work, struct omap8250_priv, qos_work); > - pm_qos_update_request(&priv->pm_qos_request, priv->latency); > + cpu_latency_qos_update_request(&priv->pm_qos_request, priv->latency); > } > > #ifdef CONFIG_SERIAL_8250_DMA > @@ -1224,8 +1224,7 @@ static int omap8250_probe(struct platform_device *pdev) > > priv->latency = PM_QOS_CPU_LATENCY_DEFAULT_VALUE; > priv->calc_latency = PM_QOS_CPU_LATENCY_DEFAULT_VALUE; > - pm_qos_add_request(&priv->pm_qos_request, PM_QOS_CPU_DMA_LATENCY, > - priv->latency); > + cpu_latency_qos_add_request(&priv->pm_qos_request, priv->latency); > INIT_WORK(&priv->qos_work, omap8250_uart_qos_work); > > spin_lock_init(&priv->rx_dma_lock); > @@ -1295,7 +1294,7 @@ static int omap8250_remove(struct platform_device *pdev) > pm_runtime_put_sync(&pdev->dev); > pm_runtime_disable(&pdev->dev); > serial8250_unregister_port(priv->line); > - pm_qos_remove_request(&priv->pm_qos_request); > + cpu_latency_qos_remove_request(&priv->pm_qos_request); > device_init_wakeup(&pdev->dev, false); > return 0; > } > diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c > index ce2558767eee..e0b720ac754b 100644 > --- a/drivers/tty/serial/omap-serial.c > +++ b/drivers/tty/serial/omap-serial.c > @@ -831,7 +831,7 @@ static void serial_omap_uart_qos_work(struct work_struct *work) > struct uart_omap_port *up = container_of(work, struct uart_omap_port, > qos_work); > > - pm_qos_update_request(&up->pm_qos_request, up->latency); > + cpu_latency_qos_update_request(&up->pm_qos_request, up->latency); > } > > static void > @@ -1724,8 +1724,7 @@ static int serial_omap_probe(struct platform_device *pdev) > > up->latency = PM_QOS_CPU_LATENCY_DEFAULT_VALUE; > up->calc_latency = PM_QOS_CPU_LATENCY_DEFAULT_VALUE; > - pm_qos_add_request(&up->pm_qos_request, > - PM_QOS_CPU_DMA_LATENCY, up->latency); > + cpu_latency_qos_add_request(&up->pm_qos_request, up->latency); > INIT_WORK(&up->qos_work, serial_omap_uart_qos_work); > > platform_set_drvdata(pdev, up); > @@ -1759,7 +1758,7 @@ static int serial_omap_probe(struct platform_device *pdev) > pm_runtime_dont_use_autosuspend(&pdev->dev); > pm_runtime_put_sync(&pdev->dev); > pm_runtime_disable(&pdev->dev); > - pm_qos_remove_request(&up->pm_qos_request); > + cpu_latency_qos_remove_request(&up->pm_qos_request); > device_init_wakeup(up->dev, false); > err_rs485: > err_port_line: > @@ -1777,7 +1776,7 @@ static int serial_omap_remove(struct platform_device *dev) > pm_runtime_dont_use_autosuspend(up->dev); > pm_runtime_put_sync(up->dev); > pm_runtime_disable(up->dev); > - pm_qos_remove_request(&up->pm_qos_request); > + cpu_latency_qos_remove_request(&up->pm_qos_request); > device_init_wakeup(&dev->dev, false); > > return 0; > -- > 2.16.4 > > > > >