Loading drivers/devfreq/governor_msm_adreno_tz.c +11 −6 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> Loading Loading @@ -470,9 +470,12 @@ static int tz_start(struct devfreq *devfreq) unsigned int tz_pwrlevels[MSM_ADRENO_MAX_PWRLEVELS + 1]; int i, out, ret; unsigned int version; struct msm_adreno_extended_profile *gpu_profile; if (partner_gpu_profile) return -EEXIST; struct msm_adreno_extended_profile *gpu_profile = container_of( (devfreq->profile), gpu_profile = container_of(devfreq->profile, struct msm_adreno_extended_profile, profile); Loading @@ -495,6 +498,7 @@ static int tz_start(struct devfreq *devfreq) tz_pwrlevels[0] = i; } else { pr_err(TAG "tz_pwrlevels[] is too short\n"); partner_gpu_profile = NULL; return -EINVAL; } Loading @@ -511,6 +515,7 @@ static int tz_start(struct devfreq *devfreq) sizeof(version)); if (ret != 0 || version > MAX_TZ_VERSION) { pr_err(TAG "tz_init failed\n"); partner_gpu_profile = NULL; return ret; } Loading Loading @@ -606,7 +611,7 @@ static int tz_handler(struct devfreq *devfreq, unsigned int event, void *data) break; } if (partner_gpu_profile && partner_gpu_profile->bus_devfreq) if (!result && partner_gpu_profile && partner_gpu_profile->bus_devfreq) switch (event) { case DEVFREQ_GOV_START: queue_work(workqueue, Loading Loading
drivers/devfreq/governor_msm_adreno_tz.c +11 −6 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> Loading Loading @@ -470,9 +470,12 @@ static int tz_start(struct devfreq *devfreq) unsigned int tz_pwrlevels[MSM_ADRENO_MAX_PWRLEVELS + 1]; int i, out, ret; unsigned int version; struct msm_adreno_extended_profile *gpu_profile; if (partner_gpu_profile) return -EEXIST; struct msm_adreno_extended_profile *gpu_profile = container_of( (devfreq->profile), gpu_profile = container_of(devfreq->profile, struct msm_adreno_extended_profile, profile); Loading @@ -495,6 +498,7 @@ static int tz_start(struct devfreq *devfreq) tz_pwrlevels[0] = i; } else { pr_err(TAG "tz_pwrlevels[] is too short\n"); partner_gpu_profile = NULL; return -EINVAL; } Loading @@ -511,6 +515,7 @@ static int tz_start(struct devfreq *devfreq) sizeof(version)); if (ret != 0 || version > MAX_TZ_VERSION) { pr_err(TAG "tz_init failed\n"); partner_gpu_profile = NULL; return ret; } Loading Loading @@ -606,7 +611,7 @@ static int tz_handler(struct devfreq *devfreq, unsigned int event, void *data) break; } if (partner_gpu_profile && partner_gpu_profile->bus_devfreq) if (!result && partner_gpu_profile && partner_gpu_profile->bus_devfreq) switch (event) { case DEVFREQ_GOV_START: queue_work(workqueue, Loading