Re: [PATCH v2 1/2] riscv: Try to get cpu frequency from device tree

2020-02-04 Thread Bin Meng
On Mon, Feb 3, 2020 at 1:38 AM Sean Anderson 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).

[PATCH v2 1/2] riscv: Try to get cpu frequency from device tree

2020-02-02 Thread Sean Anderson
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 --- This patch is the combina