projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bf8531
)
staging: android: logger: Replace current_kernel_time() interface
author
Junghoon Kim
<jhoon20.kim@samsung.com>
Wed, 4 Dec 2019 01:44:36 +0000
(10:44 +0900)
committer
Hoegeun Kwon
<hoegeun.kwon@samsung.com>
Mon, 6 Jul 2020 09:09:08 +0000
(18:09 +0900)
The current_kernel_time() interface is deprecated. It can be replaced by
getnstimeofday() function.
Change-Id: Ib614ac1eac803ae9922ae7dfdd8e854e9ad28670
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
drivers/staging/android/logger.c
patch
|
blob
|
history
diff --git
a/drivers/staging/android/logger.c
b/drivers/staging/android/logger.c
index
27b2686
..
ecdf964
100644
(file)
--- a/
drivers/staging/android/logger.c
+++ b/
drivers/staging/android/logger.c
@@
-423,7
+423,7
@@
static ssize_t logger_write_iter(struct kiocb *iocb, struct iov_iter *from)
count = min_t(size_t, iov_iter_count(from), LOGGER_ENTRY_MAX_PAYLOAD);
-
now = current_kernel_time(
);
+
getnstimeofday(&now
);
header.pid = current->tgid;
header.tid = current->pid;