Skip to content

Commit

Permalink
Allows compilation to keep going without CONFIG_ACPI_CPPC_LIB
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring authored and CyrIng committed May 31, 2023
1 parent fb0b28f commit bdd9400
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -4177,7 +4177,8 @@ signed int Read_ACPI_CST_Registers(unsigned int cpu)

void For_All_ACPI_CPPC(signed int(*CPPC_Func)(unsigned int, void*), void *arg)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
#if defined(CONFIG_ACPI_CPPC_LIB) \
&& LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
signed int rc = acpi_cpc_valid() == false;
#else
signed int rc = acpi_disabled;
Expand Down

0 comments on commit bdd9400

Please sign in to comment.