Re: [PATCH 0/4] clock: Get rid of clock_get_ns()

2020-12-11 Thread Peter Maydell
On Fri, 11 Dec 2020 at 13:50, Philippe Mathieu-Daudé wrote: > (I also started to get rid of clock_get_hz() but, as you figured, > this is not a trivial task). Yeah; I haven't really looked at the users of clock_get_hz() in detail to know whether it's really possible to remove it. For the serial

Re: [PATCH 0/4] clock: Get rid of clock_get_ns()

2020-12-11 Thread Philippe Mathieu-Daudé
On 12/8/20 7:15 PM, Peter Maydell wrote: > This patchseries makes some changes to the clock API: > * Remove clock_get_ns() > * Add clock_ticks_to_ns() to return number of nanoseconds >it will take the clock to tick N times > * clock_display_freq() to return prettily-formatted string >for

[PATCH 0/4] clock: Get rid of clock_get_ns()

2020-12-08 Thread Peter Maydell
This patchseries makes some changes to the clock API: * Remove clock_get_ns() * Add clock_ticks_to_ns() to return number of nanoseconds it will take the clock to tick N times * clock_display_freq() to return prettily-formatted string for showing humans the approximate clock frequency This