mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
1f7ec35077
This uses version 4.23.1 of the drv_dsl_cpe_api package from the Intel UGW 8.5.2.10 for the VRX518. Signed-off-by: Martin Schiller <ms.3headeddevs@gmail.com> [rebased and updated for kernel 5.10] Signed-off-by: Jan Hoffmann <jan@3e8.eu> [update to 4.23.1, switch to tag tarball, update patches] Signed-off-by: Andre Heider <a.heider@gmail.com> [added fix for elapsed time and upstream MINEFTR] Signed-off-by: Jan Hoffmann <jan@3e8.eu> Signed-off-by: Andre Heider <a.heider@gmail.com>
19 lines
499 B
Diff
19 lines
499 B
Diff
--- a/src/common/drv_dsl_cpe_os_linux.c
|
|
+++ b/src/common/drv_dsl_cpe_os_linux.c
|
|
@@ -1051,12 +1051,11 @@ DSL_int32_t DSL_DRV_ThreadShutdown(
|
|
|
|
DSL_uint32_t DSL_DRV_SysTimeGet(DSL_uint32_t nOffset)
|
|
{
|
|
- struct timeval tv;
|
|
+ struct timespec64 now;
|
|
DSL_uint32_t nTime = 0;
|
|
|
|
- memset(&tv, 0, sizeof(tv));
|
|
- do_gettimeofday(&tv);
|
|
- nTime = (DSL_uint32_t)tv.tv_sec;
|
|
+ ktime_get_real_ts64(&now);
|
|
+ nTime = (DSL_uint32_t)now.tv_sec;
|
|
|
|
if ( (nOffset == 0) || (nOffset > nTime) )
|
|
{
|