From 9ad10523e382e8268527fe4f8ad4de027ea137a6 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 5 Aug 2021 14:26:44 -0500 Subject: [PATCH] Remove wrapper rtw_sleep_schedulable() This wrapper is never used. Link: https://lore.kernel.org/r/20210805192644.15978-6-Larry.Finger@lwfinger.net --- include/osdep_service.h | 2 -- os_dep/osdep_service.c | 31 ------------------------------- 2 files changed, 33 deletions(-) diff --git a/include/osdep_service.h b/include/osdep_service.h index ab24553..e0afc2d 100644 --- a/include/osdep_service.h +++ b/include/osdep_service.h @@ -362,8 +362,6 @@ extern bool _rtw_time_after(systime a, systime b); #define rtw_time_before(a,b) _rtw_time_after(b,a) #endif -extern void rtw_sleep_schedulable(int ms); - extern void rtw_usleep_os(int us); extern u32 rtw_atoi(u8 *s); diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index 13a62c8..3621b6e 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -1545,37 +1545,6 @@ inline bool _rtw_time_after(systime a, systime b) #endif } -void rtw_sleep_schedulable(int ms) -{ - -#ifdef PLATFORM_LINUX - - u32 delta; - - delta = (ms * HZ) / 1000; /* (ms) */ - if (delta == 0) { - delta = 1;/* 1 ms */ - } - set_current_state(TASK_INTERRUPTIBLE); - if (schedule_timeout(delta) != 0) - return ; - return; - -#endif -#ifdef PLATFORM_FREEBSD - DELAY(ms * 1000); - return ; -#endif - -#ifdef PLATFORM_WINDOWS - - NdisMSleep(ms * 1000); /* (us)*1000=(ms) */ - -#endif - -} - - void rtw_usleep_os(int us) { #ifdef PLATFORM_LINUX