summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>2018-11-05 15:43:50 +0100
committerChristoph Muellner <christoph.muellner@theobroma-systems.com>2019-04-30 20:02:00 +0200
commit5f63b58e6c80373c25fffd7cd5b9c4356496145f (patch)
tree010996340ef44f43d467d97f7162242123ad0e4a
parent1c72e34163c78cb07ca2dbfc7766f576c9c52fa8 (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.c2
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);