diff options
author | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2018-11-05 15:43:50 +0100 |
---|---|---|
committer | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2019-03-20 20:15:11 +0100 |
commit | d275c8ad27b41827e8b3f0f007bad9d1cb6d373d (patch) | |
tree | c7471deda7aabe7feb3be6fa27fb3aa86d90ec3a | |
parent | 97237b5b6bee9d1915792dd9911f630a8f44076e (diff) |
devfreq: rockchip: Fix unprotected call to smp_processor_id().
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
-rw-r--r-- | drivers/devfreq/rockchip_dmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/rockchip_dmc.c b/drivers/devfreq/rockchip_dmc.c index 8b7e67e37599..6f1d14d9973b 100644 --- a/drivers/devfreq/rockchip_dmc.c +++ b/drivers/devfreq/rockchip_dmc.c @@ -1373,7 +1373,7 @@ static int rockchip_dmcfreq_target(struct device *dev, unsigned long *freq, * Go to specified cpufreq and block other cpufreq changes since * set_rate needs to complete during vblank. */ - cpu_cur = smp_processor_id(); + cpu_cur = get_cpu(); put_cpu(); policy = cpufreq_cpu_get(cpu_cur); if (!policy) { dev_err(dev, "cpu%d policy NULL\n", cpu_cur); |