]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/clock: Let clock_set_mul_div() return a boolean value
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 22 Mar 2024 15:48:17 +0000 (16:48 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 26 Mar 2024 13:24:06 +0000 (14:24 +0100)
commit52405b7f69d03428950c33ebe823e2256e6a4a70
tree8dbb70a72be5237294cd22e9c97f6bbf89a9d3a8
parente66d741467d3062e1d7d2150d2c8de0b805095d2
hw/clock: Let clock_set_mul_div() return a boolean value

Let clock_set_mul_div() return a boolean value whether the
clock has been updated or not, similarly to clock_set().

Return early when clock_set_mul_div() is called with
same mul/div values the clock has.

Acked-by: Luc Michel <luc@lmichel.fr>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20240325152827.73817-2-philmd@linaro.org>
docs/devel/clocks.rst
hw/core/clock.c
include/hw/clock.h