summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-05-25 10:39:39 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-05-25 10:39:39 +0200
commit21c73367fc8f265657b24343497ed5135e296c24 (patch)
treebe959b2ac685efc2c43b397f45ed556952fd0ff1 /kernel
parentc62ec4610c40bcc44f2d3d5ed1c312737279e2f3 (diff)
parent1d6442263400709f12586b4b23a75b6aad549140 (diff)
Merge back PM core material for v4.18.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/wakelock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/power/wakelock.c b/kernel/power/wakelock.c
index dfba59be190b..4210152e56f0 100644
--- a/kernel/power/wakelock.c
+++ b/kernel/power/wakelock.c
@@ -188,6 +188,7 @@ static struct wakelock *wakelock_lookup_add(const char *name, size_t len,
return ERR_PTR(-ENOMEM);
}
wl->ws.name = wl->name;
+ wl->ws.last_time = ktime_get();
wakeup_source_add(&wl->ws);
rb_link_node(&wl->node, parent, node);
rb_insert_color(&wl->node, &wakelocks_tree);