mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
Remove wrapper rtw_udelay_os()
This wrapper is a simple call to udelay(). Remove it. Link: https://lore.kernel.org/r/20210805192644.15978-4-Larry.Finger@lwfinger.net
This commit is contained in:
committed by
Carlos Garcés
parent
7f8451a86e
commit
a5adfa895b
@@ -1606,55 +1606,6 @@ void rtw_usleep_os(int us)
|
||||
|
||||
}
|
||||
|
||||
#ifdef DBG_DELAY_OS
|
||||
void _rtw_udelay_os(int us, const char *func, const int line)
|
||||
{
|
||||
|
||||
#if 0
|
||||
if (us > 1000) {
|
||||
RTW_INFO("%s:%d %s(%d)\n", func, line, __FUNCTION__, us);
|
||||
rtw_usleep_os(us);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
RTW_INFO("%s:%d %s(%d)\n", func, line, __FUNCTION__, us);
|
||||
|
||||
|
||||
#if defined(PLATFORM_LINUX)
|
||||
|
||||
udelay((unsigned long)us);
|
||||
|
||||
#elif defined(PLATFORM_WINDOWS)
|
||||
|
||||
NdisStallExecution(us); /* (us) */
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void rtw_udelay_os(int us)
|
||||
{
|
||||
|
||||
#ifdef PLATFORM_LINUX
|
||||
|
||||
udelay((unsigned long)us);
|
||||
|
||||
#endif
|
||||
#ifdef PLATFORM_FREEBSD
|
||||
/* Delay for delay microseconds */
|
||||
DELAY(us);
|
||||
return ;
|
||||
#endif
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
|
||||
NdisStallExecution(us); /* (us) */
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
bool rtw_macaddr_is_larger(const u8 *a, const u8 *b)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user