lkml.org 
[lkml]   [2018]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: 500 ms delay in time saved into RTC
From
Date
Dear Karel,


> Would be possible to somehow detect what is the right default setting for
> --delay? I mean for example detect architecture / clock HW, etc.
>
> I have no problem with --delay, but it's tuning for advanced users and
> HW specific stuff. It would be nice to have something more portable.
>
> Karel
>

As I understood, issue exists only at x86 platform, where
MC146818-compatible RTC used.

But even if you will correctly detect platform, there is no guaranty to
get exactly MC146818 RTC. RTC can be other type. It even can be not
single in the system.

What is more or less usable is "/sys/class/rtc/rtcX/name" file, which
contains driver name.
For x86 and MC146818-compatible RTC its name is "rtc_cmos". And it can
be used to distinguish RTC type by hwclock utility.

Best wishes.
--
Igor Plyatov

\
 
 \ /
  Last update: 2018-02-19 12:32    [W:0.065 / U:0.908 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site