public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac647fc
)
timer.c: note an optional improvement
author
Alan Cox
<alan@linux.intel.com>
Sat, 30 Jun 2018 22:11:38 +0000
(23:11 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 30 Jun 2018 22:11:38 +0000
(23:11 +0100)
Kernel/timer.c
patch
|
blob
|
history
diff --git
a/Kernel/timer.c
b/Kernel/timer.c
index
7dbb235
..
0033068
100644
(file)
--- a/
Kernel/timer.c
+++ b/
Kernel/timer.c
@@
-105,6
+105,11
@@
void updatetod(void)
return;
slide = rtcnew - rtcsec; /* Seconds elapsed */
rtcsec = rtcnew;
+ /*
+ * FIXME: it would be nice if we see a backwards slide of 1 or 2
+ * to stall the OS clock so we can use an rtc to track a not so
+ * stable system clock.
+ */
addtod:
if (slide < 0)
slide += 60; /* Seconds wrapped */