static void dyn_fsync_suspend(struct power_suspend *p) { mutex_lock(&fsync_mutex); if (dyn_fsync_active) { power_suspend_active = true; dyn_fsync_force_flush(); } mutex_unlock(&fsync_mutex); }
static void dyn_fsync_early_suspend(struct early_suspend *h) { mutex_lock(&fsync_mutex); if (dyn_fsync_active) { early_suspend_active = true; dyn_fsync_force_flush(); } mutex_unlock(&fsync_mutex); }
extern void dyn_fsync_suspend(void) { mutex_lock(&fsync_mutex); if (dyn_fsync_active) { suspend_active = true; dyn_fsync_force_flush(); } mutex_unlock(&fsync_mutex); }