Skip to content

Commit

Permalink
Take into account the cpufreq_unregister_driver prototype change
Browse files Browse the repository at this point in the history
* starting from Kernel 6.3
* unconditionally with CachyOS
  • Loading branch information
cyring authored and CyrIng committed Mar 2, 2023
1 parent 453b8b9 commit 34efe5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -20623,7 +20623,12 @@ static int CoreFreqK_FreqDriver_UnInit(void)
{
int rc = -EINVAL;
#ifdef CONFIG_CPU_FREQ
rc = cpufreq_unregister_driver(&CoreFreqK.FreqDriver);
#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)) && (!defined(CONFIG_CACHY))
rc =
#else
rc = 0;
#endif
cpufreq_unregister_driver(&CoreFreqK.FreqDriver);
#endif /* CONFIG_CPU_FREQ */
return rc;
}
Expand Down

0 comments on commit 34efe5d

Please sign in to comment.