commit | a6e8abce025691b6a55e1c195878d7f76bfeb9d1 | [log] [tgz] |
---|---|---|
author | Marc Zyngier <maz@kernel.org> | Sat Sep 07 10:11:49 2019 +0100 |
committer | Marc Zyngier <maz@kernel.org> | Sat Sep 07 10:11:49 2019 +0100 |
tree | 53f827c9c495eba32c7c6b8e4de95a9847e5152a | |
parent | a55aa89aab90fae7c815b0551b07be37db359d76 [diff] |
timekeeping: Expose API allowing retrival of current clocksource and counter value A number of PTP drivers (such as ptp-kvm) are assuming what the current clock source is, which could lead to interesting effects on systems where the clocksource can change depending on external events. For this purpose, add a new API that retrives both the current monotonic clock as well as its counter value. Signed-off-by: Marc Zyngier <maz@kernel.org>