Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Sep 2016 13:49:50 +0000 (UTC)
From:      =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= <royger@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r306501 - stable/10/sys/kern
Message-ID:  <201609301349.u8UDnovN066704@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: royger
Date: Fri Sep 30 13:49:50 2016
New Revision: 306501
URL: https://svnweb.freebsd.org/changeset/base/306501

Log:
  MFC r299064
  
  rtc: fix inverted resolution check

Modified:
  stable/10/sys/kern/subr_rtc.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/subr_rtc.c
==============================================================================
--- stable/10/sys/kern/subr_rtc.c	Fri Sep 30 13:47:52 2016	(r306500)
+++ stable/10/sys/kern/subr_rtc.c	Fri Sep 30 13:49:50 2016	(r306501)
@@ -84,7 +84,7 @@ clock_register(device_t dev, long res)	/
 {
 
 	if (clock_dev != NULL) {
-		if (clock_res > res) {
+		if (clock_res <= res) {
 			if (bootverbose)
 				device_printf(dev, "not installed as "
 				    "time-of-day clock: clock %s has higher "



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