static void lcdfreq_late_resume(struct early_suspend *h) { struct lcdfreq_info *lcdfreq = container_of(h, struct lcdfreq_info, early_suspend); dev_info(lcdfreq->dev, "%s\n", __func__); mutex_lock(&lcdfreq->lock); lcdfreq->enable = true; refresh_last_switch(); mutex_unlock(&lcdfreq->lock); return; }
static void lcdfreq_late_resume(struct early_suspend *h) { struct lcdfreq_info *lcdfreq = container_of(h, struct lcdfreq_info, early_suspend); dev_info(lcdfreq->dev, "%s\n", __func__); mutex_lock(&lcdfreq->lock); lcdfreq->enable = true; #ifdef CONFIG_LCD_FREQ_SWITCH_ACCOUNTING refresh_last_switch(); #endif mutex_unlock(&lcdfreq->lock); return; }