devfreq: pod v2: Add support for Linux v6.3

Currently the pod v2 governor only supports kernels upto Linux v6.2.
Now that Linux v6.3-rc1 is available we can enable support for this
kernel by ensuring that the definitions and functions defined in the
governor_v2.h are compatible with upstream.

Bug 4014315

Change-Id: I6a1440fe36887b86946527483d0baecb83c017a7
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2867139
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Jon Hunter
2023-03-07 14:32:27 +00:00
committed by Laxman Dewangan
parent 0852eda522
commit 0a12bf1be8

View File

@@ -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, 3, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
#ifndef _GOVERNOR_H
#define _GOVERNOR_H
#include <linux/devfreq.h>
@@ -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(6, 3, 0) */
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0) */