Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 2020 14:57:29 +0000 (UTC)
From:      Alexander Leidinger <netchild@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363130 - head/sys/compat/linux
Message-ID:  <202007121457.06CEvTRP013736@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: netchild
Date: Sun Jul 12 14:57:29 2020
New Revision: 363130
URL: https://svnweb.freebsd.org/changeset/base/363130

Log:
  Fix r363125 (Implement CLOCK_MONOTONIC_RAW (linux >= 2.6.28)),
  by realy using the MONOTONIC version and not the REALTIME version.
  
  Noticed by:	myfreeweb at github

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

Modified: head/sys/compat/linux/linux_time.c
==============================================================================
--- head/sys/compat/linux/linux_time.c	Sun Jul 12 14:50:12 2020	(r363129)
+++ head/sys/compat/linux/linux_time.c	Sun Jul 12 14:57:29 2020	(r363130)
@@ -212,10 +212,10 @@ linux_to_native_clockid(clockid_t *n, clockid_t l)
 		*n = CLOCK_THREAD_CPUTIME_ID;
 		break;
 	case LINUX_CLOCK_REALTIME_COARSE:
-	case LINUX_CLOCK_MONOTONIC_RAW:
 		*n = CLOCK_REALTIME_FAST;
 		break;
 	case LINUX_CLOCK_MONOTONIC_COARSE:
+	case LINUX_CLOCK_MONOTONIC_RAW:
 		*n = CLOCK_MONOTONIC_FAST;
 		break;
 	case LINUX_CLOCK_BOOTTIME:



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