mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
rtc: implement a sysfs interface for clock offset
clock offset may be set and read in decimal parts per billion attribute is /sys/class/rtc/rtcN/offset The attribute is only visible for rtcs that have set_offset implemented. Signed-off-by: Joshua Clayton <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
This commit is contained in:
parent
b3967067c2
commit
5495a4159f
2 changed files with 40 additions and 1 deletions
|
|
@ -157,6 +157,12 @@ wakealarm: The time at which the clock will generate a system wakeup
|
|||
the epoch by default, or if there's a leading +, seconds in the
|
||||
future, or if there is a leading +=, seconds ahead of the current
|
||||
alarm.
|
||||
offset: The amount which the rtc clock has been adjusted in firmware.
|
||||
Visible only if the driver supports clock offset adjustment.
|
||||
The unit is parts per billion, i.e. The number of clock ticks
|
||||
which are added to or removed from the rtc's base clock per
|
||||
billion ticks. A positive value makes a day pass more slowly,
|
||||
longer, and a negative value makes a day pass more quickly.
|
||||
|
||||
IOCTL INTERFACE
|
||||
---------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue