staging: r8188eu: Replace wrapper rtw_yield_os
authorLarry Finger <Larry.Finger@lwfinger.net>
Sun, 22 Dec 2013 23:36:33 +0000 (17:36 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 00:02:09 +0000 (16:02 -0800)
a simple yield() is sufficient.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/os_dep/osdep_service.c

index 9938e22385dcee782e4541bfa60ad3a4cd150aad..7c467ae00fc9b296cfbc871e1bc10da0e8a9f832 100644 (file)
@@ -6333,7 +6333,7 @@ unsigned int send_beacon(struct adapter *padapter)
                issue_beacon(padapter, 100);
                issue++;
                do {
-                       rtw_yield_os();
+                       yield();
                        rtw_hal_get_hwreg(padapter, HW_VAR_BCN_VALID, (u8 *)(&bxmitok));
                        poll++;
                } while ((poll%10) != 0 && !bxmitok && !padapter->bSurpriseRemoved && !padapter->bDriverStopped);
index b409b6935b8843d9d9a3369082e78ee99c14228d..ca0a7085445f75154a710eb9264668905120a64f 100644 (file)
@@ -655,7 +655,7 @@ _func_enter_;
                        SetFwRsvdPagePkt(adapt, false);
                        DLBcnCount++;
                        do {
-                               rtw_yield_os();
+                               yield();
                                /* mdelay(10); */
                                /*  check rsvd page download OK. */
                                rtw_hal_get_hwreg(adapt, HW_VAR_BCN_VALID, (u8 *)(&bcn_valid));
index 818bb9164b66116e726e3f20bc7df5f9a5d14795..00c349ebffb875a03e9c9c723eb9ad7b0c382218 100644 (file)
@@ -277,8 +277,6 @@ void rtw_sleep_schedulable(int ms);
 
 u32  rtw_atoi(u8 *s);
 
-void rtw_yield_os(void);
-
 static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer)
 {
        return del_timer_sync(ptimer);
index aedc0164f9538a512aa2afeffc3aa1c187485ca4..2261342b584cc44ace14d022864a2e0433258237 100644 (file)
@@ -245,11 +245,6 @@ void rtw_sleep_schedulable(int ms)
                return;
 }
 
-void rtw_yield_os(void)
-{
-       yield();
-}
-
 #define RTW_SUSPEND_LOCK_NAME "rtw_wifi"
 
 inline void rtw_suspend_lock_init(void)