[PATCH V2 0/2] LoongArch: Add Loongson-3 CPUFreq driver support
From: Huacai Chen
Date: Tue Jul 02 2024 - 11:28:22 EST
This series add architectural preparation and CPUFreq driver for
Loongson-3 (based on LoongArch).
Some of LoongArch processors support DVFS, their IOCSR.FEATURES has
IOCSRF_FREQSCALE set. And they has a micro-core in the package called
SMC (System Management Controller) to scale frequency, voltage, etc.
V1 -> V2:
1, Use module_platform_driver() instead of module_init()/module_exit();
2, Move the lock protection into do_service_request();
3, Add light-weight hotplug support with help of online()/offline() callbacks;
4, Simplify loongson3_freq_data by removing cur_cpu_freq;
5, Remove unneeded cpu_online() checking.
Huacai Chen(2):
LoongArch: Add architectural preparation for CPUFreq.
cpufreq: Add Loongson-3 CPUFreq driver support.
Signed-off-by: Huacai Chen <chenhuacai@xxxxxxxxxxx>
---
2.27.0