From a50a8e12ccc4f8e4e60de7489588c6e55f31c52d Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 14 Jun 2022 12:04:22 +0100 Subject: [PATCH] devfreq: pod v2: Add support for Linux v5.19 Currently the pod v2 governor only supports kernel upto Linux v5.17. Now that Linux v5.19-rc2 we can enable support for this kernel by ensuring that the definitions and functions defined in the governor_v2.h are compatible with upstream. JIRA LS-418 Bug 3674235 Change-Id: I3a42290e5207163b82dea8a13d11bfa6decb8317 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2728508 Reviewed-by: Bibek Basu Reviewed-by: svc_kernel_abi GVS: Gerrit_Virtual_Submit --- drivers/devfreq/governor_v2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/devfreq/governor_v2.h b/drivers/devfreq/governor_v2.h index 70ecf3e5..6fda70c3 100644 --- a/drivers/devfreq/governor_v2.h +++ b/drivers/devfreq/governor_v2.h @@ -8,7 +8,7 @@ * * This header is for devfreq governors in drivers/devfreq/ */ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 18, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) && LINUX_VERSION_CODE <= KERNEL_VERSION(5, 19, 0) #ifndef _GOVERNOR_H #define _GOVERNOR_H #include @@ -97,4 +97,4 @@ static inline int devfreq_update_stats(struct devfreq *df) return df->profile->get_dev_status(df->dev.parent, &df->last_status); } #endif /* _GOVERNOR_H */ -#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 18, 0) */ +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) && LINUX_VERSION_CODE <= KERNEL_VERSION(5, 19, 0) */