Skip to content
Commit ab24017a authored by Sean Anderson's avatar Sean Anderson Committed by Andes
Browse files

riscv: Try to get cpu frequency from a "clocks" node if it exists



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: default avatarSean Anderson <seanga2@gmail.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 958a3f46
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment