OsmocomBB MS-side GSM Protocol stack (L1, L2, L3) including firmware https://osmocom.org/projects/baseband
Go to file
Stefan Sperling 316f22f057 trxcon/sched_clck.c: fix time delta calculations
Use osmo_clock_gettime() to read the monotonic clock instead
of gettimeofday() which could drift backwards.
This requires switching the scheduler clock from struct timeval
to struct timespec. Expand some variables to 64 bits in order
to keep types used in calculations compatible.

The previous implementation unconditionally subtracted microsecond
values from different time measurements, causing overflow if the
current measurement was taken in less of a fraction of a second
than the past measurement. Use timespecsub() for the subtraction
instead which accounts for fractions of a second correctly.

Change-Id: Ic93f90685c6d6dc28dfc4ad48c998e0eac113cf8
Related: OS#3467
2018-08-17 17:22:59 +00:00
contrib jenkins: use osmo-clean-workspace.sh before and after build 2017-10-31 09:25:11 +00:00
doc mobile: Add lua examples for basic functions that are available 2017-12-27 10:51:32 +08:00
include include/osmocore: remove unused headers 2018-05-20 15:26:40 +03:00
src trxcon/sched_clck.c: fix time delta calculations 2018-08-17 17:22:59 +00:00
.gitignore Don't ignore top-level Makefile 2018-01-22 17:33:54 +01:00
.gitreview Add 'git review' config file 2017-09-07 12:21:24 +02:00