mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 07:13:56 -04:00
As it stands, panthor keeps a cached current frequency value for when it wants to retrieve it. This doesn't work well for when things might switch frequency without panthor's knowledge. Instead, implement the get_cur_freq operation, and expose it through a helper function to the rest of panthor. Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Steven Price <steven.price@arm.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Karunika Choo <karunika.choo@arm.com> Reviewed-by: Liviu Dudau <liviu.dudau@arm.com> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com> Link: https://patch.msgid.link/20251017-mt8196-gpufreq-v8-3-98fc1cc566a1@collabora.com Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
24 lines
652 B
C
24 lines
652 B
C
/* SPDX-License-Identifier: GPL-2.0 or MIT */
|
|
/* Copyright 2019 Collabora ltd. */
|
|
|
|
#ifndef __PANTHOR_DEVFREQ_H__
|
|
#define __PANTHOR_DEVFREQ_H__
|
|
|
|
struct devfreq;
|
|
struct thermal_cooling_device;
|
|
|
|
struct panthor_device;
|
|
struct panthor_devfreq;
|
|
|
|
int panthor_devfreq_init(struct panthor_device *ptdev);
|
|
|
|
void panthor_devfreq_resume(struct panthor_device *ptdev);
|
|
void panthor_devfreq_suspend(struct panthor_device *ptdev);
|
|
|
|
void panthor_devfreq_record_busy(struct panthor_device *ptdev);
|
|
void panthor_devfreq_record_idle(struct panthor_device *ptdev);
|
|
|
|
unsigned long panthor_devfreq_get_freq(struct panthor_device *ptdev);
|
|
|
|
#endif /* __PANTHOR_DEVFREQ_H__ */
|