From 479719946269da88d97d8c8089b4343d109fdb3a Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Sat, 9 Aug 2014 10:19:35 +0200 Subject: [PATCH] metadata: follow 3.17 changes for current->start_time As of Linux kernel commit 57e0be041d9e21a73 ("sched: Make task->real_start_time nanoseconds based"), current->start_time is stored in nanoseconds, so we don't need to do convert anymore. --- metadata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.c b/metadata.c index 1df8294..aa667ae 100644 --- a/metadata.c +++ b/metadata.c @@ -187,7 +187,7 @@ static int kdbus_meta_append_cred(struct kdbus_meta *meta) struct kdbus_creds creds = {}; /* uid, gid, pid and tid will be filled later */ - creds.starttime = timespec_to_ns(¤t->start_time); + creds.starttime = current->start_time; return kdbus_meta_append_data(meta, KDBUS_ITEM_CREDS, &creds, sizeof(creds)); -- 2.34.1