inline void rtw_lock_suspend(void) { #ifdef CONFIG_WAKELOCK wake_lock(&rtw_suspend_lock); #elif defined(CONFIG_ANDROID_POWER) android_lock_suspend(&rtw_suspend_lock); #endif }
inline void rtw_lock_suspend() { #ifdef CONFIG_WAKELOCK wake_lock(&rtw_suspend_lock); #elif defined(CONFIG_ANDROID_POWER) android_lock_suspend(&rtw_suspend_lock); #endif #if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER) //DBG_871X("####%s: suspend_lock_count:%d####\n", __FUNCTION__, rtw_suspend_lock.stat.count); #endif }
inline void rtw_lock_suspend() { #if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER) //DBG_871X("##########%s###########\n", __FUNCTION__); // if(rtw_suspend_lock.link.next == LIST_POISON1 || rtw_suspend_lock.link.prev == LIST_POISON2) { // DBG_871X("##########%s########### list poison!!\n", __FUNCTION__); // return; // } #endif #ifdef CONFIG_WAKELOCK wake_lock(&rtw_suspend_lock); #elif defined(CONFIG_ANDROID_POWER) android_lock_suspend(&rtw_suspend_lock); #endif }
/* * Handle an MMC request */ static void rk28_sdmmc0_request(struct mmc_host *mmc, struct mmc_request *mrq) { struct rk28mci_host *host = mmc_priv(mmc); #ifdef CONFIG_ANDROID_POWER android_lock_suspend(&sdmmc0_request_lock); #endif host->request = mrq; host->cmd_is_stop = 0; host->cmderror = 0; rk28_sdmmc_send_request(mmc); mmc_request_done(mmc, mrq); #ifdef CONFIG_ANDROID_POWER android_unlock_suspend(&sdmmc0_request_lock); #endif }