Loading drivers/gpu/msm/governor_gpubw_mon.c +4 −0 Original line number Diff line number Diff line Loading @@ -197,6 +197,9 @@ static int devfreq_gpubw_event_handler(struct devfreq *devfreq, int result = 0; unsigned long freq; if (strcmp(dev_name(devfreq->dev.parent), "kgsl-busmon")) return -EINVAL; mutex_lock(&devfreq->lock); freq = devfreq->previous_freq; switch (event) { Loading Loading @@ -233,6 +236,7 @@ static struct devfreq_governor devfreq_gpubw = { .name = "gpubw_mon", .get_target_freq = devfreq_gpubw_get_target, .event_handler = devfreq_gpubw_event_handler, .immutable = 1, }; static int __init devfreq_gpubw_init(void) Loading drivers/gpu/msm/governor_msm_adreno_tz.c +10 −5 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2010-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2010-2020, The Linux Foundation. All rights reserved. */ #include <linux/errno.h> #include <linux/module.h> #include <linux/devfreq.h> #include <linux/dma-mapping.h> #include <linux/math64.h> #include <linux/of_platform.h> #include <linux/spinlock.h> #include <linux/slab.h> #include <linux/io.h> Loading Loading @@ -505,9 +506,13 @@ static int tz_suspend(struct devfreq *devfreq) static int tz_handler(struct devfreq *devfreq, unsigned int event, void *data) { int result; struct msm_adreno_extended_profile *gpu_profile; struct device_node *node = devfreq->dev.parent->of_node; struct msm_adreno_extended_profile *gpu_profile = container_of( (devfreq->profile), if (!of_device_is_compatible(node, "qcom,kgsl-3d0")) return -EINVAL; gpu_profile = container_of((devfreq->profile), struct msm_adreno_extended_profile, profile); Loading Loading
drivers/gpu/msm/governor_gpubw_mon.c +4 −0 Original line number Diff line number Diff line Loading @@ -197,6 +197,9 @@ static int devfreq_gpubw_event_handler(struct devfreq *devfreq, int result = 0; unsigned long freq; if (strcmp(dev_name(devfreq->dev.parent), "kgsl-busmon")) return -EINVAL; mutex_lock(&devfreq->lock); freq = devfreq->previous_freq; switch (event) { Loading Loading @@ -233,6 +236,7 @@ static struct devfreq_governor devfreq_gpubw = { .name = "gpubw_mon", .get_target_freq = devfreq_gpubw_get_target, .event_handler = devfreq_gpubw_event_handler, .immutable = 1, }; static int __init devfreq_gpubw_init(void) Loading
drivers/gpu/msm/governor_msm_adreno_tz.c +10 −5 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2010-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2010-2020, The Linux Foundation. All rights reserved. */ #include <linux/errno.h> #include <linux/module.h> #include <linux/devfreq.h> #include <linux/dma-mapping.h> #include <linux/math64.h> #include <linux/of_platform.h> #include <linux/spinlock.h> #include <linux/slab.h> #include <linux/io.h> Loading Loading @@ -505,9 +506,13 @@ static int tz_suspend(struct devfreq *devfreq) static int tz_handler(struct devfreq *devfreq, unsigned int event, void *data) { int result; struct msm_adreno_extended_profile *gpu_profile; struct device_node *node = devfreq->dev.parent->of_node; struct msm_adreno_extended_profile *gpu_profile = container_of( (devfreq->profile), if (!of_device_is_compatible(node, "qcom,kgsl-3d0")) return -EINVAL; gpu_profile = container_of((devfreq->profile), struct msm_adreno_extended_profile, profile); Loading