svn commit: r215688 - stable/8/sys/kern

Nathan Whitehorn nwhitehorn at FreeBSD.org
Mon Nov 22 16:58:08 UTC 2010


Author: nwhitehorn
Date: Mon Nov 22 16:58:07 2010
New Revision: 215688
URL: http://svn.freebsd.org/changeset/base/215688

Log:
  MFC r213986:
  Fix an XXX comment by answering 'no'. OS X does not set the day-of-week
  counter on SMU-based systems, which causes FreeBSD to reject the RTC time
  when used in a dual-boot environment. Since we don't use the day-of-week
  counter anyway, solve this by just not checking that it matches.

Modified:
  stable/8/sys/kern/subr_clock.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/kern/subr_clock.c
==============================================================================
--- stable/8/sys/kern/subr_clock.c	Mon Nov 22 16:47:53 2010	(r215687)
+++ stable/8/sys/kern/subr_clock.c	Mon Nov 22 16:58:07 2010	(r215688)
@@ -165,10 +165,6 @@ clock_ct_to_ts(struct clocktime *ct, str
 	  	days += days_in_month(year, i);
 	days += (ct->day - 1);
 
-	/* XXX Dow sanity check. Dow is not used, so should we check it? */
-	if (ct->dow != -1 && ct->dow != day_of_week(days))
-		return (EINVAL);
-
 	/* Add hours, minutes, seconds. */
 	secs = ((days * 24 + ct->hour) * 60 + ct->min) * 60 + ct->sec;
 


More information about the svn-src-stable-8 mailing list