mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-22 12:33:40 +00:00
rtl8188eu: Remove CONFIG_WAKELOCK - not selected
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
77e8428c33
commit
a31bd964a2
2 changed files with 1 additions and 29 deletions
|
@ -518,11 +518,6 @@ __inline static u32 bitshift(u32 bitmask)
|
|||
// limitation of path length
|
||||
#define PATH_LENGTH_MAX PATH_MAX
|
||||
|
||||
// Suspend lock prevent system from going suspend
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
#include <linux/wakelock.h>
|
||||
#endif
|
||||
|
||||
extern void rtw_suspend_lock_init(void);
|
||||
extern void rtw_suspend_lock_uninit(void);
|
||||
extern void rtw_lock_suspend(void);
|
||||
|
@ -532,7 +527,7 @@ extern void rtw_lock_suspend_timeout(long timeout);
|
|||
#endif //CONFIG_WOWLAN
|
||||
|
||||
//Atomic integer operations
|
||||
#define ATOMIC_T atomic_t
|
||||
#define ATOMIC_T atomic_t
|
||||
|
||||
extern void ATOMIC_SET(ATOMIC_T *v, int i);
|
||||
extern int ATOMIC_READ(ATOMIC_T *v);
|
||||
|
|
|
@ -329,48 +329,25 @@ void rtw_yield_os(void)
|
|||
|
||||
#define RTW_SUSPEND_LOCK_NAME "rtw_wifi"
|
||||
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
static struct wake_lock rtw_suspend_lock;
|
||||
#endif
|
||||
|
||||
inline void rtw_suspend_lock_init(void)
|
||||
{
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
wake_lock_init(&rtw_suspend_lock, WAKE_LOCK_SUSPEND, RTW_SUSPEND_LOCK_NAME);
|
||||
#endif
|
||||
}
|
||||
|
||||
inline void rtw_suspend_lock_uninit(void)
|
||||
{
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
wake_lock_destroy(&rtw_suspend_lock);
|
||||
#endif
|
||||
}
|
||||
|
||||
inline void rtw_lock_suspend(void)
|
||||
{
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
wake_lock(&rtw_suspend_lock);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_WAKELOCK)
|
||||
//DBG_88E("####%s: suspend_lock_count:%d####\n", __func__, rtw_suspend_lock.stat.count);
|
||||
#endif
|
||||
}
|
||||
|
||||
inline void rtw_unlock_suspend(void)
|
||||
{
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
wake_unlock(&rtw_suspend_lock);
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CONFIG_WOWLAN
|
||||
inline void rtw_lock_suspend_timeout(long timeout)
|
||||
{
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
wake_lock_timeout(&rtw_suspend_lock, timeout);
|
||||
#endif
|
||||
}
|
||||
#endif //CONFIG_WOWLAN
|
||||
|
||||
|
|
Loading…
Reference in a new issue