Projects
Eulaceura:Factory
lwip
_service:obs_scm:0168-lwip-adapt-interrupt-mode...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0168-lwip-adapt-interrupt-mode.patch of Package lwip
From 2516715e8d2987b5dffc0226d67850d84891b236 Mon Sep 17 00:00:00 2001 From: jiangheng <jiangheng14@huawei.com> Date: Mon, 23 Sep 2024 21:38:53 +0800 Subject: [PATCH] lwip: adapt interrupt mode --- src/api/sys_arch.c | 6 +++++- src/include/arch/sys_arch.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/sys_arch.c b/src/api/sys_arch.c index dcfd0a4..4c42950 100644 --- a/src/api/sys_arch.c +++ b/src/api/sys_arch.c @@ -76,14 +76,18 @@ u64_t sys_now_us(void) return (rte_rdtsc() / g_sys_cycles_per_us); } -void sys_timer_run(void) +u32_t sys_timer_run(void) { u32_t sleeptime; sleeptime = sys_timeouts_sleeptime(); if (sleeptime == 0) { sys_check_timeouts(); + /* get netx timeout */ + sleeptime = sys_timeouts_sleeptime(); } + + return sleeptime; } /* diff --git a/src/include/arch/sys_arch.h b/src/include/arch/sys_arch.h index 55c204f..edaab4f 100644 --- a/src/include/arch/sys_arch.h +++ b/src/include/arch/sys_arch.h @@ -89,7 +89,7 @@ u8_t *sys_hugepage_malloc(const char *name, unsigned size); void sys_mempool_var_init(struct memp_desc *memp, char *desc, u16_t size, u16_t num, u8_t *base, struct memp **tab, struct stats_mem *stats); -void sys_timer_run(void); +u32_t sys_timer_run(void); u32_t sys_now(void); u64_t sys_now_us(void); -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2