diff options
author | Anup Patel <anup.patel@wdc.com> | 2021-07-24 10:35:01 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-08-14 09:07:42 +0530 |
commit | 7aa6c9aa96049b741b754b7340ea96a37719de27 (patch) | |
tree | 0f82d9ef6e2d02de411e52e4aa8df2371fefadf3 /lib/sbi | |
parent | b35f7826b019623d096b6b5c1803232818834e5b (diff) |
lib: utils/timer: Simplify MTIMER synchronization
We simplify MTIMER synchronization as follows:
1) Detect MTIMER devices with unique (or non-shared) MTIME
register at boot-time
2) Select first MTIMER device with no associated HART as our
reference MTIMER device
3) Only synchronize MTIMER devices with unique (or non-shared)
MTIME register using reference MTIMER device
4) Directly update the MTIME register at time of synchronization
because MTIME is a read/write register.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/sbi')
0 files changed, 0 insertions, 0 deletions