diff options
author | Sami Kerola | 2016-07-17 17:14:16 +0200 |
---|---|---|
committer | Sami Kerola | 2017-02-05 00:39:37 +0100 |
commit | 0f32118e70c097f54fe706cb34adeaf9010a6a7a (patch) | |
tree | 50fef94261958921abdb01dfcdd09b4349ee3663 /sys-utils/hwclock.h | |
parent | hwclock: initialize struct adjtime members (diff) | |
download | kernel-qcow2-util-linux-0f32118e70c097f54fe706cb34adeaf9010a6a7a.tar.gz kernel-qcow2-util-linux-0f32118e70c097f54fe706cb34adeaf9010a6a7a.tar.xz kernel-qcow2-util-linux-0f32118e70c097f54fe706cb34adeaf9010a6a7a.zip |
hwclock: use symbolic magic values passed in between functions
The manipulate_clock() is seeing return value from
busywait_for_rtc_clock_tick().
And the get_permissions_cmos() can see i386_iopl() return value.
Reviewed-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/hwclock.h')
-rw-r--r-- | sys-utils/hwclock.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-utils/hwclock.h b/sys-utils/hwclock.h index c76068c88..cd1d3b6cf 100644 --- a/sys-utils/hwclock.h +++ b/sys-utils/hwclock.h @@ -9,6 +9,12 @@ #include "c.h" +enum { + RTC_BUSYWAIT_OK = 0, + RTC_BUSYWAIT_FAILED, + RTC_BUSYWAIT_TIMEOUT +}; + struct hwclock_control { char *date_opt; unsigned long epoch_option; |