From c2d009d2038b29abe6c7d480957112a94e6f3ff9 Mon Sep 17 00:00:00 2001 From: Zhen Chen Date: Thu, 22 Jul 2021 09:40:50 +0800 Subject: [PATCH] MALI: bifrost: fix a bug that makes vdd_gpu abnormally low Change-Id: Ic0b785ead0da551e9e640c45b73f6686a1ec5cca Signed-off-by: Zhen Chen --- drivers/gpu/arm/bifrost/backend/gpu/mali_kbase_devfreq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/arm/bifrost/backend/gpu/mali_kbase_devfreq.c b/drivers/gpu/arm/bifrost/backend/gpu/mali_kbase_devfreq.c index 1381f992364b..e64d273fa87f 100644 --- a/drivers/gpu/arm/bifrost/backend/gpu/mali_kbase_devfreq.c +++ b/drivers/gpu/arm/bifrost/backend/gpu/mali_kbase_devfreq.c @@ -56,7 +56,7 @@ static struct monitor_dev_profile mali_mdevp = { * This function will be called only when the opp table which is compatible with * "operating-points-v2-mali", is not present in the devicetree for GPU device. * - * Return: Voltage value in milli volts, 0 in case of error. + * Return: Voltage value in uV, 0 in case of error. */ static unsigned long get_voltage(struct kbase_device *kbdev, unsigned long freq) { @@ -82,8 +82,8 @@ static unsigned long get_voltage(struct kbase_device *kbdev, unsigned long freq) rcu_read_unlock(); #endif - /* Return the voltage in milli volts */ - return voltage / 1000; + /* Return the voltage in uV. */ + return voltage; } void kbase_devfreq_opp_translate(struct kbase_device *kbdev, unsigned long freq,