[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH-for-9.0 1/2] hw/clock: Let clock_set_mul_div() return boolean
From: |
Peter Maydell |
Subject: |
Re: [PATCH-for-9.0 1/2] hw/clock: Let clock_set_mul_div() return boolean value |
Date: |
Fri, 22 Mar 2024 16:40:00 +0000 |
On Fri, 22 Mar 2024 at 15:58, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> Let clock_set_mul_div() return a boolean value whether the
> clock has been updated or not, similarly to clock_set().
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> include/hw/clock.h | 4 +++-
> hw/core/clock.c | 8 +++++++-
> 2 files changed, 10 insertions(+), 2 deletions(-)
I guess this makes sense, especially since you often would like to know
this to decide whether to call clock_propagate().
We should also update the docs/devel/clocks.rst to mention this.
thanks
-- PMM