spin_lock_init(&ws->lock);
timer_setup(&ws->timer, pm_wakeup_timer_fn, 0);
ws->active = false;
---- ws->last_time = ktime_get();
--- - spin_lock_irqsave(&events_lock, flags);
+++ + raw_spin_lock_irqsave(&events_lock, flags);
list_add_rcu(&ws->entry, &wakeup_sources);
--- - spin_unlock_irqrestore(&events_lock, flags);
+++ + raw_spin_unlock_irqrestore(&events_lock, flags);
}
EXPORT_SYMBOL_GPL(wakeup_source_add);
ret = (cnt != saved_count || inpr > 0);
events_check_enabled = !ret;
}
--- - spin_unlock_irqrestore(&events_lock, flags);
+++ + raw_spin_unlock_irqrestore(&events_lock, flags);
if (ret) {
---- pr_info("PM: Wakeup pending, aborting suspend\n");
++++ pr_debug("PM: Wakeup pending, aborting suspend\n");
pm_print_active_wakeup_sources();
}