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