Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5424937ybv; Tue, 11 Feb 2020 15:40:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwNMc+/3MjfKD07ENC3Kd5/2CO8j4473Z0msPlI6Y3tY8s5B/hsa/s2je5DIMP+pE/SkQX6 X-Received: by 2002:a05:6830:1203:: with SMTP id r3mr311797otp.230.1581464455434; Tue, 11 Feb 2020 15:40:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581464455; cv=none; d=google.com; s=arc-20160816; b=CbugF1HgSgIdECs21eCVkXkjyzMqRJXgInF+MuGuwWaePxjAVtRnEWH/YkqwZMs05j GMI4mEnLssbiw2jumywCQjI9/fdMZMnnfON74A4uUc5aWC9zXcFk55KxiIli12zeI6Tk hsenaJPIPOmJQHk9izL5uzVrUcWlUydLqnC1kFpRNxtW/y+CQOeGjWnTgEYPHxcnUf1B jZq+VRrX7uC0kba/OU9XtssODkmd5E84KoA7JqoLZ+zLg4ZmRxdVOIpZIbBo1yWijKuE N9sLqlHv7xFmWoRoRCD6bZqgmSCkVlbufmkqSbDmqb1/o9LusVqp8Lm6qyJiRKq7423X oR/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=aatMg4lhUMKvl7HISHDhv39niWJgg/reMPpy3VcHC5U=; b=XmfAz0a9UATAXj6v7wQA1PUrDIisWLU+C5TrSH4qgvr1yXKFOGR+2PO8i94u2Eot/9 zYwQpObOKg/OxNeOp7s9NTAfAeZF+K5xqNVAnFuIFN+LMWGkph5H8xVuAFluJUQEMsFY N3Y1kYh2VYlSeHS/KNPNIwXPCBUr7ekgZGrtyGgr3p3VobqASrOdcisSNN2a5C6qwAEc aggYZm3gIQkQBvT8PseRswx8MANd3ayPtBItrYyXx8OHykRynyt6oJexDnI6HO+q4rYB iUfwOo/H5DHCtXbzmeWWbfTC0gxBKu7bx7oQnn+RAu7wjkV3Bbct/m9MJrRNkPQxXpgg ZcFg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si2439782oic.205.2020.02.11.15.40.43; Tue, 11 Feb 2020 15:40:55 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728377AbgBKXkM (ORCPT + 99 others); Tue, 11 Feb 2020 18:40:12 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:51057 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728092AbgBKXit (ORCPT ); Tue, 11 Feb 2020 18:38:49 -0500 Received: from 79.184.254.199.ipv4.supernova.orange.pl (79.184.254.199) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.341) id 9bb898a50f6407aa; Wed, 12 Feb 2020 00:38:46 +0100 From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , Amit Kucheria , Sebastian Reichel Subject: [PATCH 17/28] drivers: hsi: Call cpu_latency_qos_*() instead of pm_qos_*() Date: Wed, 12 Feb 2020 00:13:17 +0100 Message-ID: <5212477.aCSzomBNgy@kreacher> In-Reply-To: <1654227.8mz0SueHsU@kreacher> References: <1654227.8mz0SueHsU@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Rafael J. Wysocki" Call cpu_latency_qos_add/remove_request() and cpu_latency_qos_request_active() instead of pm_qos_add/remove_request() and pm_qos_request_active(), respectively, because the latter are going to be dropped. No intentional functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/hsi/clients/cmt_speech.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/hsi/clients/cmt_speech.c b/drivers/hsi/clients/cmt_speech.c index 9eec970cdfa5..89869c66fb9d 100644 --- a/drivers/hsi/clients/cmt_speech.c +++ b/drivers/hsi/clients/cmt_speech.c @@ -965,14 +965,13 @@ static int cs_hsi_buf_config(struct cs_hsi_iface *hi, if (old_state != hi->iface_state) { if (hi->iface_state == CS_STATE_CONFIGURED) { - pm_qos_add_request(&hi->pm_qos_req, - PM_QOS_CPU_DMA_LATENCY, + cpu_latency_qos_add_request(&hi->pm_qos_req, CS_QOS_LATENCY_FOR_DATA_USEC); local_bh_disable(); cs_hsi_read_on_data(hi); local_bh_enable(); } else if (old_state == CS_STATE_CONFIGURED) { - pm_qos_remove_request(&hi->pm_qos_req); + cpu_latency_qos_remove_request(&hi->pm_qos_req); } } return r; @@ -1075,8 +1074,8 @@ static void cs_hsi_stop(struct cs_hsi_iface *hi) WARN_ON(!cs_state_idle(hi->control_state)); WARN_ON(!cs_state_idle(hi->data_state)); - if (pm_qos_request_active(&hi->pm_qos_req)) - pm_qos_remove_request(&hi->pm_qos_req); + if (cpu_latency_qos_request_active(&hi->pm_qos_req)) + cpu_latency_qos_remove_request(&hi->pm_qos_req); spin_lock_bh(&hi->lock); cs_hsi_free_data(hi); -- 2.16.4