Loading drivers/devfreq/governor_gpubw_mon.c +10 −2 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2014-2020, The Linux Foundation. All rights reserved. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #include <linux/devfreq.h> Loading Loading @@ -149,8 +150,15 @@ static int devfreq_gpubw_get_target(struct devfreq *df, (unsigned int) priv->bus.total_time; norm_cycles = (unsigned int)(priv->bus.ram_time + priv->bus.ram_wait) / (unsigned int) priv->bus.total_time; if (priv->bus.ram_wait == 0) wait_active_percent = 0; else if (priv->bus.ram_time == 0) wait_active_percent = 100; else wait_active_percent = (100 * (unsigned int)priv->bus.ram_wait) / (unsigned int) priv->bus.ram_time; gpu_percent = (100 * (unsigned int)priv->bus.gpu_time) / (unsigned int) priv->bus.total_time; Loading Loading
drivers/devfreq/governor_gpubw_mon.c +10 −2 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2014-2020, The Linux Foundation. All rights reserved. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #include <linux/devfreq.h> Loading Loading @@ -149,8 +150,15 @@ static int devfreq_gpubw_get_target(struct devfreq *df, (unsigned int) priv->bus.total_time; norm_cycles = (unsigned int)(priv->bus.ram_time + priv->bus.ram_wait) / (unsigned int) priv->bus.total_time; if (priv->bus.ram_wait == 0) wait_active_percent = 0; else if (priv->bus.ram_time == 0) wait_active_percent = 100; else wait_active_percent = (100 * (unsigned int)priv->bus.ram_wait) / (unsigned int) priv->bus.ram_time; gpu_percent = (100 * (unsigned int)priv->bus.gpu_time) / (unsigned int) priv->bus.total_time; Loading