PM / Sleep: Add user space interface for manipulating wakeup sources, v3
[linux-2.6.git] / drivers / base / power / wakeup.c
index e2f6cfc..78df7a6 100644 (file)
@@ -133,6 +133,7 @@ void wakeup_source_add(struct wakeup_source *ws)
        spin_lock_init(&ws->lock);
        setup_timer(&ws->timer, pm_wakeup_timer_fn, (unsigned long)ws);
        ws->active = false;
+       ws->last_time = ktime_get();
 
        spin_lock_irq(&events_lock);
        list_add_rcu(&ws->entry, &wakeup_sources);