Skip to content

Commit 01d2b18

Browse files
committed
drivers: tty: Call cpu_latency_qos_*() instead of pm_qos_*()
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 <[email protected]> Reviewed-by: Ulf Hansson <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Amit Kucheria <[email protected]> Tested-by: Amit Kucheria <[email protected]>
1 parent c4c632e commit 01d2b18

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

drivers/tty/serial/8250/8250_omap.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ static void omap8250_uart_qos_work(struct work_struct *work)
569569
struct omap8250_priv *priv;
570570

571571
priv = container_of(work, struct omap8250_priv, qos_work);
572-
pm_qos_update_request(&priv->pm_qos_request, priv->latency);
572+
cpu_latency_qos_update_request(&priv->pm_qos_request, priv->latency);
573573
}
574574

575575
#ifdef CONFIG_SERIAL_8250_DMA
@@ -1224,8 +1224,7 @@ static int omap8250_probe(struct platform_device *pdev)
12241224

12251225
priv->latency = PM_QOS_CPU_LATENCY_DEFAULT_VALUE;
12261226
priv->calc_latency = PM_QOS_CPU_LATENCY_DEFAULT_VALUE;
1227-
pm_qos_add_request(&priv->pm_qos_request, PM_QOS_CPU_DMA_LATENCY,
1228-
priv->latency);
1227+
cpu_latency_qos_add_request(&priv->pm_qos_request, priv->latency);
12291228
INIT_WORK(&priv->qos_work, omap8250_uart_qos_work);
12301229

12311230
spin_lock_init(&priv->rx_dma_lock);
@@ -1295,7 +1294,7 @@ static int omap8250_remove(struct platform_device *pdev)
12951294
pm_runtime_put_sync(&pdev->dev);
12961295
pm_runtime_disable(&pdev->dev);
12971296
serial8250_unregister_port(priv->line);
1298-
pm_qos_remove_request(&priv->pm_qos_request);
1297+
cpu_latency_qos_remove_request(&priv->pm_qos_request);
12991298
device_init_wakeup(&pdev->dev, false);
13001299
return 0;
13011300
}

drivers/tty/serial/omap-serial.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ static void serial_omap_uart_qos_work(struct work_struct *work)
831831
struct uart_omap_port *up = container_of(work, struct uart_omap_port,
832832
qos_work);
833833

834-
pm_qos_update_request(&up->pm_qos_request, up->latency);
834+
cpu_latency_qos_update_request(&up->pm_qos_request, up->latency);
835835
}
836836

837837
static void
@@ -1724,8 +1724,7 @@ static int serial_omap_probe(struct platform_device *pdev)
17241724

17251725
up->latency = PM_QOS_CPU_LATENCY_DEFAULT_VALUE;
17261726
up->calc_latency = PM_QOS_CPU_LATENCY_DEFAULT_VALUE;
1727-
pm_qos_add_request(&up->pm_qos_request,
1728-
PM_QOS_CPU_DMA_LATENCY, up->latency);
1727+
cpu_latency_qos_add_request(&up->pm_qos_request, up->latency);
17291728
INIT_WORK(&up->qos_work, serial_omap_uart_qos_work);
17301729

17311730
platform_set_drvdata(pdev, up);
@@ -1759,7 +1758,7 @@ static int serial_omap_probe(struct platform_device *pdev)
17591758
pm_runtime_dont_use_autosuspend(&pdev->dev);
17601759
pm_runtime_put_sync(&pdev->dev);
17611760
pm_runtime_disable(&pdev->dev);
1762-
pm_qos_remove_request(&up->pm_qos_request);
1761+
cpu_latency_qos_remove_request(&up->pm_qos_request);
17631762
device_init_wakeup(up->dev, false);
17641763
err_rs485:
17651764
err_port_line:
@@ -1777,7 +1776,7 @@ static int serial_omap_remove(struct platform_device *dev)
17771776
pm_runtime_dont_use_autosuspend(up->dev);
17781777
pm_runtime_put_sync(up->dev);
17791778
pm_runtime_disable(up->dev);
1780-
pm_qos_remove_request(&up->pm_qos_request);
1779+
cpu_latency_qos_remove_request(&up->pm_qos_request);
17811780
device_init_wakeup(&dev->dev, false);
17821781

17831782
return 0;

0 commit comments

Comments
 (0)