Re: [PATCH v4 14/17] riscv: Try to get cpu frequency from device tree

2020-02-19 Thread Sean Anderson
On 2/19/20 11:12 AM, Bin Meng wrote: > Hi Sean, > > On Tue, Feb 11, 2020 at 2:05 PM 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 spur

Re: [PATCH v4 14/17] riscv: Try to get cpu frequency from device tree

2020-02-19 Thread Bin Meng
Hi Sean, On Tue, Feb 11, 2020 at 2:05 PM 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) > != siz

[PATCH v4 14/17] riscv: Try to get cpu frequency from device tree

2020-02-10 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 Reviewed-by: Bin Meng --- This