@@ -4279,9 +4279,12 @@ static signed int Get_ACPI_CPPC_Registers(unsigned int cpu, void *arg)
42794279 .Minimum = CPPC_Caps.lowest_perf,
42804280 #endif
42814281 .Maximum = CPPC_Caps.highest_perf,
4282- #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
4282+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) \
4283+ && LINUX_VERSION_CODE < KERNEL_VERSION(7, 0, 0)
42834284 .Desired = CPPC_Perf.reference_perf,
4284- #elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
4285+ #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) \
4286+ && LINUX_VERSION_CODE < KERNEL_VERSION(7, 0, 0)) \
4287+ || LINUX_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)
42854288 .Desired = CPPC_Caps.reference_perf,
42864289 #else
42874290 .Desired = 0,
@@ -8628,7 +8631,8 @@ static signed int Put_ACPI_CPPC_Registers(unsigned int cpu, void *arg)
86288631 #else
86298632 .min_perf = CPPC_Caps.lowest_perf,
86308633 #endif
8631- #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
8634+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) \
8635+ && LINUX_VERSION_CODE < KERNEL_VERSION(7, 0, 0)
86328636 .desired_perf = CPPC_Perf.reference_perf
86338637 #else
86348638 .desired_perf = CPPC_Caps.reference_perf
0 commit comments