Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2017 07:57:30 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317324 - head/sys/compat/linux
Message-ID:  <201704230757.v3N7vU7B054268@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Sun Apr 23 07:57:30 2017
New Revision: 317324
URL: https://svnweb.freebsd.org/changeset/base/317324

Log:
  Map Linux CLOCK_BOOTTIME to native CLOCK_UPTIME.
  
  MFC after:	1 week

Modified:
  head/sys/compat/linux/linux_time.c

Modified: head/sys/compat/linux/linux_time.c
==============================================================================
--- head/sys/compat/linux/linux_time.c	Sun Apr 23 07:43:50 2017	(r317323)
+++ head/sys/compat/linux/linux_time.c	Sun Apr 23 07:57:30 2017	(r317324)
@@ -207,8 +207,10 @@ linux_to_native_clockid(clockid_t *n, cl
 	case LINUX_CLOCK_MONOTONIC_COARSE:
 		*n = CLOCK_MONOTONIC_FAST;
 		break;
-	case LINUX_CLOCK_MONOTONIC_RAW:
 	case LINUX_CLOCK_BOOTTIME:
+		*n = CLOCK_UPTIME;
+		break;
+	case LINUX_CLOCK_MONOTONIC_RAW:
 	case LINUX_CLOCK_REALTIME_ALARM:
 	case LINUX_CLOCK_BOOTTIME_ALARM:
 	case LINUX_CLOCK_SGI_CYCLE:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704230757.v3N7vU7B054268>