Skip to content

Commit ff98043

Browse files
committed
[Build][x86_64] Compatibility fix with CPUFREQ on AlmaLinux (#590)
1 parent 154f4f9 commit ff98043

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

x86_64/corefreqk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22000,7 +22000,7 @@ static long CoreFreqK_Limit_Idle(int target)
2200022000
#ifdef CONFIG_CPU_FREQ
2200122001
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0) \
2200222002
|| (defined(RHEL_MAJOR) && (RHEL_MAJOR >= 9) \
22003-
&& (RHEL_MINOR >= 7) && (RHEL_MINOR < 99))
22003+
&& (RHEL_MINOR >= 6) && (RHEL_MINOR < 99))
2200422004
static void CoreFreqK_Policy_Exit(struct cpufreq_policy *policy)
2200522005
{
2200622006
UNUSED(policy);

x86_64/corefreqk.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10366,7 +10366,9 @@ static PROCESSOR_SPECIFIC Misc_Specific_Processor[] = {
1036610366
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 19)
1036710367
#define CPUFREQ_POLICY_UNKNOWN (0)
1036810368
#endif
10369-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0)
10369+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0) \
10370+
|| (defined(RHEL_MAJOR) && (RHEL_MAJOR >= 9) \
10371+
&& (RHEL_MINOR >= 6) && (RHEL_MINOR < 99))
1037010372
static void CoreFreqK_Policy_Exit(struct cpufreq_policy *policy) ;
1037110373
#else
1037210374
static int CoreFreqK_Policy_Exit(struct cpufreq_policy*) ;

0 commit comments

Comments
 (0)