devfreq: Add governor attribute for nvhost_podgov

add governor attributes for nvhost_podgov in K5.15
- timer
- polling_interval

Bug 4137663

Change-Id: Ib8a989dec51474ba507a33cdc232fa24212414a5
Signed-off-by: Shao-Chun Kao <shaochunk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2913189
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
shaochunk
2023-05-31 18:21:01 +08:00
committed by mobile promotions
parent a88e0ab87c
commit 8b310f6369

View File

@@ -892,6 +892,8 @@ static int nvhost_pod_event_handler(struct devfreq *df,
static struct devfreq_governor nvhost_podgov = { static struct devfreq_governor nvhost_podgov = {
.name = "nvhost_podgov", .name = "nvhost_podgov",
.attrs = DEVFREQ_GOV_ATTR_POLLING_INTERVAL
| DEVFREQ_GOV_ATTR_TIMER,
.get_target_freq = nvhost_pod_estimate_freq, .get_target_freq = nvhost_pod_estimate_freq,
.event_handler = nvhost_pod_event_handler, .event_handler = nvhost_pod_event_handler,
}; };