Skip to content

Commit

Permalink
[AArch64] Compile dev_pm_opp_put if Kernel greater or equal 4.11
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Jun 29, 2024
1 parent 89ba739 commit c0d1a68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aarch64/corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2039,7 +2039,9 @@ static unsigned long GetVoltage_From_OPP(unsigned int cpu,
if (!IS_ERR(opp)) {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)
u_volt = dev_pm_opp_get_voltage(opp);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
dev_pm_opp_put(opp);
#endif
#else
u_volt = opp_get_voltage(opp);
#endif
Expand Down

0 comments on commit c0d1a68

Please sign in to comment.