radxa / kernel

BSP kernel source
Other
153 stars 179 forks source link

cpufreq: rockchip: fix incorrect config flag #383

Open peonix0 opened 6 days ago

peonix0 commented 6 days ago

Using the CONFIG_ARCH_ROCKCHIP flag for function calls to rockchip_cpufreq_online and rockchip_cpufreq_offline is incorrect. These functions are declared under the CONFIG_ARM_ROCKCHIP_CPUFREQ flag 1. As a result, using CONFIG_ARCH_ROCKCHIP can lead to implicit declaration errors if the correct config flag (CONFIG_ARM_ROCKCHIP_CPUFREQ) is not enabled.

This patch updates the conditional preprocessor directive to use CONFIG_ARM_ROCKCHIP_CPUFREQ, ensuring consistency with the function declarations and preventing potential compilation issues.