summaryrefslogtreecommitdiff
path: root/drivers/devfreq/rockchip_dmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/devfreq/rockchip_dmc.c')
-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);