qemu/hw/watchdog
Peter Maydell 5ee0abed51 clock: Add ClockEvent parameter to callbacks
The Clock framework allows users to specify a callback which is
called after the clock's period has been updated.  Some users need to
also have a callback which is called before the clock period is
updated.

As the first step in adding support for notifying Clock users on
pre-update events, add an argument to the ClockCallback to specify
what event is being notified, and add an argument to the various
functions for registering a callback to specify which events are
of interest to that callback.

Note that the documentation update renders correct the previously
incorrect claim in 'Adding a new clock' that callbacks "will be
explained in a following section".

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Luc Michel <luc@lmichel.fr>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210219144617.4782-2-peter.maydell@linaro.org
2021-03-08 17:20:01 +00:00
..
Kconfig hw/watchdog: Implement SBSA watchdog device 2020-10-27 11:10:44 +00:00
cmsdk-apb-watchdog.c clock: Add ClockEvent parameter to callbacks 2021-03-08 17:20:01 +00:00
meson.build hw/watchdog: Implement SBSA watchdog device 2020-10-27 11:10:44 +00:00
sbsa_gwdt.c hw/watchdog: Implement SBSA watchdog device 2020-10-27 11:10:44 +00:00
trace-events hw/watchdog/cmsdk-apb-watchdog: Add trace event for lock status 2020-06-23 11:39:47 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
watchdog.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
wdt_aspeed.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
wdt_diag288.c Remove superfluous timer_del() calls 2021-01-08 15:13:38 +00:00
wdt_i6300esb.c Remove superfluous timer_del() calls 2021-01-08 15:13:38 +00:00
wdt_ib700.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
wdt_imx2.c hw/watchdog: Implement full i.MX watchdog support 2020-05-21 20:00:18 +01:00