]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: make epoch functions alpha only
authorJ William Piggott <elseifthen@gmx.com>
Mon, 17 Apr 2017 22:39:56 +0000 (18:39 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Wed, 19 Apr 2017 02:39:05 +0000 (22:39 -0400)
commit039a0ceccf11f293ce9db96cc9f556f861505e6e
treeca21b469b2cb04403012dffd222036d136b8270b
parent8b73ff963398bededb182b09e5788454e7eeea1d
hwclock: make epoch functions alpha only

It's been 19.1315 years since the comment below was written and the kernel
has actually gone further away from allowing an RTC epoch on ISA machines.

/*
 * Maintenance note: This should work on non-Alpha machines, but the
 * evidence today (98.03.04) indicates that the kernel only keeps the epoch
 * value on Alphas. If that is ever fixed, this function should be changed.
 */

The current behavior is to accept the epoch options on ISA machines
only to print a lengthy message explaining that you cannot use them.

This patch removes that behavior, making the epoch functions truly Alpha
only, as the man-page states that they are.

* sys-utils/hwclock.c: make epoch function alpha only.
* sys-utils/hwclock.h: same.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock.c
sys-utils/hwclock.h