From 0852eda5223832107b0d2133c36119cb64108d7e Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 3 Jan 2023 16:29:53 +0000 Subject: [PATCH] devfreq: pod v2: Add support for Linux v6.2 Currently the pod v2 governor only supports kernel upto Linux v6.0. Now that Linux v6.2-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. Note that by enabling support for v6.2 kernels, we want to allow the driver to be built for all v6.2.x kernels and not just v6.2.0. So enable building the driver for all kernels less than v6.3.0. Bug 3820317 Signed-off-by: Jon Hunter Change-Id: I3087c660c9cd7d4aac016d5e9c8d9a089eea368c Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2836690 (cherry picked from commit 7f73ecbdf7d78ae6f61234374706a24bda73e079) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2837247 Reviewed-by: svc_kernel_abi Reviewed-by: Mikko Perttunen 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 554ffef9..ab39a861 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(6, 1, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 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, 19, 0) */ +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0) */