
4 Feb
2020
4 Feb
'20
11:36 a.m.
On Mon, Feb 3, 2020 at 1:38 AM Sean Anderson seanga2@gmail.com wrote:
Instead of always using the "clock-frequency" property to determine cpu frequency, try using a clock in "clocks" if it exists. This patch also fixes a bug where there could be spurious higher frequencies if sizeof(u32) != sizeof(ulong).
Signed-off-by: Sean Anderson seanga2@gmail.com
This patch is the combination of the patches https://patchwork.ozlabs.org/patch/1223933/ https://patchwork.ozlabs.org/patch/1224957/ "riscv: Fix incorrect cpu frequency on RV64" "riscv: Try to get cpu frequency from device tree"
Changes for v2:
- Renamed err to ret
drivers/cpu/riscv_cpu.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com