Skip to content

Commit 154f4f9

Browse files
committed
[Build][x86_64] Compatibility fix with CPUFREQ on RHEL 9.7 (#590)
1 parent 93fd6e3 commit 154f4f9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

x86_64/corefreqk.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21998,7 +21998,9 @@ static long CoreFreqK_Limit_Idle(int target)
2199821998
}
2199921999

2200022000
#ifdef CONFIG_CPU_FREQ
22001-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0)
22001+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0) \
22002+
|| (defined(RHEL_MAJOR) && (RHEL_MAJOR >= 9) \
22003+
&& (RHEL_MINOR >= 7) && (RHEL_MINOR < 99))
2200222004
static void CoreFreqK_Policy_Exit(struct cpufreq_policy *policy)
2200322005
{
2200422006
UNUSED(policy);

0 commit comments

Comments
 (0)