Skip to content

Commit

Permalink
[AArch64] Fix conditional build based on CONFIG_CPU_FREQ
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Feb 17, 2024
1 parent b939e37 commit 8b02359
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 @@ -2886,6 +2886,7 @@ void Generic_Core_Counters_Clear(union SAVE_AREA_CORE *Save, CORE_RO *Core)
Pkg->Counter[0].Uncore.FC0 = Pkg->Counter[1].Uncore.FC0; \
})

#ifdef CONFIG_CPU_FREQ
COF_UNION Compute_COF_From_CPU_Freq(struct cpufreq_policy *pFreqPolicy)
{
register unsigned long long Q = pFreqPolicy->cur,
Expand All @@ -2896,6 +2897,7 @@ COF_UNION Compute_COF_From_CPU_Freq(struct cpufreq_policy *pFreqPolicy)
};
return ratio;
}
#endif /* CONFIG_CPU_FREQ */

COF_UNION Compute_COF_From_PMU_Counter( unsigned long long cnt, CLOCK clk,
unsigned int limit )
Expand Down

0 comments on commit 8b02359

Please sign in to comment.