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-10-02 00:39:26 +0200
commitd9009e33bc2dbfc2cb6197fb0bb064fc67417dbe (patch)
treed577f7c534ea74da53c1fd3a915f2bfd384d3f5b
parent3608a3e085591ec974af36ead7c40ae6397807e2 (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 5eda7b59b47f..4dfb17ac7ec0 100644
--- a/drivers/devfreq/rockchip_dmc.c
+++ b/drivers/devfreq/rockchip_dmc.c
@@ -1353,7 +1353,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);