Skip to content

Commit

Permalink
[Build] Fix CI regression with kernel 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Feb 13, 2024
1 parent cddddcf commit 94000d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion aarch64/corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1805,8 +1805,10 @@ signed int Get_ACPI_CPPC_Registers(unsigned int cpu, void *arg)
.Maximum = CPPC_Caps.highest_perf,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
.Desired = CPPC_Perf.reference_perf,
#else
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
.Desired = CPPC_Caps.reference_perf,
#else
.Desired = 0,
#endif
.Energy = 0
};
Expand Down
4 changes: 3 additions & 1 deletion x86_64/corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -4074,8 +4074,10 @@ signed int Get_ACPI_CPPC_Registers(unsigned int cpu, void *arg)
.Maximum = CPPC_Caps.highest_perf,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
.Desired = CPPC_Perf.reference_perf,
#else
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
.Desired = CPPC_Caps.reference_perf,
#else
.Desired = 0,
#endif
.Energy = 0
};
Expand Down

0 comments on commit 94000d9

Please sign in to comment.