summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/drm_linux.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-07-02 11:01:21 +0000
committerjsg <jsg@openbsd.org>2020-07-02 11:01:21 +0000
commit60d323d605f06d3335b0525089ac6ad45b97651c (patch)
treef2ede622a538e21bd36e66e0bd70a948e3a08cba /sys/dev/pci/drm/drm_linux.c
parentpowerpc64 has ci_idepth (diff)
downloadwireguard-openbsd-60d323d605f06d3335b0525089ac6ad45b97651c.tar.xz
wireguard-openbsd-60d323d605f06d3335b0525089ac6ad45b97651c.zip
remove unused timespec interfaces no longer in linux
Diffstat (limited to 'sys/dev/pci/drm/drm_linux.c')
-rw-r--r--sys/dev/pci/drm/drm_linux.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/sys/dev/pci/drm/drm_linux.c b/sys/dev/pci/drm/drm_linux.c
index d46ef6a2503..356b56aef5b 100644
--- a/sys/dev/pci/drm/drm_linux.c
+++ b/sys/dev/pci/drm/drm_linux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: drm_linux.c,v 1.60 2020/06/14 15:20:07 jsg Exp $ */
+/* $OpenBSD: drm_linux.c,v 1.61 2020/07/02 11:01:21 jsg Exp $ */
/*
* Copyright (c) 2013 Jonathan Gray <jsg@openbsd.org>
* Copyright (c) 2015, 2016 Mark Kettenis <kettenis@openbsd.org>
@@ -303,28 +303,6 @@ kthread_stop(struct proc *p)
free(thread, M_DRM, sizeof(*thread));
}
-struct timespec
-ns_to_timespec(const int64_t nsec)
-{
- struct timespec ts;
- int32_t rem;
-
- if (nsec == 0) {
- ts.tv_sec = 0;
- ts.tv_nsec = 0;
- return (ts);
- }
-
- ts.tv_sec = nsec / NSEC_PER_SEC;
- rem = nsec % NSEC_PER_SEC;
- if (rem < 0) {
- ts.tv_sec--;
- rem += NSEC_PER_SEC;
- }
- ts.tv_nsec = rem;
- return (ts);
-}
-
int64_t
timeval_to_ns(const struct timeval *tv)
{