diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2021-11-29 20:55:05 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-01-28 14:29:46 +0000 |
commit | 2f93d8b04a1bcc8e0a576e35ae13c96af42634db (patch) | |
tree | 43d1e77588ca78e05ee83d90dedcc3bfec6fca4f /hw/arm/omap1.c | |
parent | 617dff091f3478db9a44320df03f74b9df0617fb (diff) | |
download | qemu-2f93d8b04a1bcc8e0a576e35ae13c96af42634db.zip qemu-2f93d8b04a1bcc8e0a576e35ae13c96af42634db.tar.gz qemu-2f93d8b04a1bcc8e0a576e35ae13c96af42634db.tar.bz2 |
rtc: Move RTC function prototypes to their own header
softmmu/rtc.c defines two public functions: qemu_get_timedate() and
qemu_timedate_diff(). Currently we keep the prototypes for these in
qemu-common.h, but most files don't need them. Move them to their
own header, a new include/sysemu/rtc.h.
Since the C files using these two functions did not need to include
qemu-common.h for any other reason, we can remove those include lines
when we add the include of the new rtc.h.
The license for the .h file follows that of the softmmu/rtc.c
where both the functions are defined.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/arm/omap1.c')
-rw-r--r-- | hw/arm/omap1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/omap1.c b/hw/arm/omap1.c index 180d378..9852c2a 100644 --- a/hw/arm/omap1.c +++ b/hw/arm/omap1.c @@ -21,7 +21,6 @@ #include "qemu/error-report.h" #include "qemu/main-loop.h" #include "qapi/error.h" -#include "qemu-common.h" #include "cpu.h" #include "exec/address-spaces.h" #include "hw/hw.h" @@ -35,6 +34,7 @@ #include "sysemu/qtest.h" #include "sysemu/reset.h" #include "sysemu/runstate.h" +#include "sysemu/rtc.h" #include "qemu/range.h" #include "hw/sysbus.h" #include "qemu/cutils.h" |