diff options
Diffstat (limited to 'drivers/base/power/wakeup.c')
-rw-r--r-- | drivers/base/power/wakeup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c index 2595b8d8fe1f..cbb463b3a750 100644 --- a/drivers/base/power/wakeup.c +++ b/drivers/base/power/wakeup.c | |||
@@ -133,6 +133,7 @@ void wakeup_source_add(struct wakeup_source *ws) | |||
133 | spin_lock_init(&ws->lock); | 133 | spin_lock_init(&ws->lock); |
134 | setup_timer(&ws->timer, pm_wakeup_timer_fn, (unsigned long)ws); | 134 | setup_timer(&ws->timer, pm_wakeup_timer_fn, (unsigned long)ws); |
135 | ws->active = false; | 135 | ws->active = false; |
136 | ws->last_time = ktime_get(); | ||
136 | 137 | ||
137 | spin_lock_irq(&events_lock); | 138 | spin_lock_irq(&events_lock); |
138 | list_add_rcu(&ws->entry, &wakeup_sources); | 139 | list_add_rcu(&ws->entry, &wakeup_sources); |