summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/linux-libre-pinebook-pro-22-soc-rockchip-Port-rockchip_pm_config-driver-to-Linux.patch
blob: 68c21da3abc6c7c58e6306c1d38bbaccda9a1805 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From b867286f70ce1368a0536ba45846f318473736e0 Mon Sep 17 00:00:00 2001
From: Tobias Schramm <t.schramm@manjaro.org>
Date: Tue, 16 Jun 2020 21:29:29 +0200
Subject: [PATCH 22/22] soc: rockchip: Port rockchip_pm_config driver to Linux
 5.8

Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
---
 drivers/soc/rockchip/rockchip_pm_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/rockchip/rockchip_pm_config.c b/drivers/soc/rockchip/rockchip_pm_config.c
index 43b2e0f33343..07a0ff9465d3 100644
--- a/drivers/soc/rockchip/rockchip_pm_config.c
+++ b/drivers/soc/rockchip/rockchip_pm_config.c
@@ -99,7 +99,7 @@ static void rockchip_pm_virt_pwroff_prepare(void)
 
 	regulator_suspend_prepare(PM_SUSPEND_MEM);
 
-	error = disable_nonboot_cpus();
+	error = freeze_secondary_cpus(0);
 	if (error) {
 		pr_err("Disable nonboot cpus failed!\n");
 		return;
-- 
2.30.0