summary refs log tree commit diff stats
path: root/include/sysemu/cpu-timers.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-12-08 12:35:23 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-19 12:28:59 +0100
commitf07f246734e271b368bfc9afc4cbc437999d58ea (patch)
treea3c017d559a12c78f5116ad3d8beb17d02698eec /include/sysemu/cpu-timers.h
parent6adcba7c0a58fe9d1b74c4af3dd881253b3a94dd (diff)
downloadfocaccia-qemu-f07f246734e271b368bfc9afc4cbc437999d58ea.tar.gz
focaccia-qemu-f07f246734e271b368bfc9afc4cbc437999d58ea.zip
system/cpu-timers: Have icount_configure() return a boolean
Following the example documented since commit e3fe3988d7 ("error:
Document Error API usage rules"), have icount_configure()
return a boolean indicating whether an error is set or not.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231208113529.74067-2-philmd@linaro.org>
Diffstat (limited to 'include/sysemu/cpu-timers.h')
-rw-r--r--include/sysemu/cpu-timers.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/sysemu/cpu-timers.h b/include/sysemu/cpu-timers.h
index 2e786fe7fb..b70dc7692d 100644
--- a/include/sysemu/cpu-timers.h
+++ b/include/sysemu/cpu-timers.h
@@ -50,8 +50,14 @@ int64_t icount_get(void);
  */
 int64_t icount_to_ns(int64_t icount);
 
-/* configure the icount options, including "shift" */
-void icount_configure(QemuOpts *opts, Error **errp);
+/**
+ * icount_configure: configure the icount options, including "shift"
+ * @opts: Options to parse
+ * @errp: pointer to a NULL-initialized error object
+ *
+ * Return: true on success, else false setting @errp with error
+ */
+bool icount_configure(QemuOpts *opts, Error **errp);
 
 /* used by tcg vcpu thread to calc icount budget */
 int64_t icount_round(int64_t count);