svn commit: r213986 - head/sys/kern

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sun Oct 17 17:31:49 UTC 2010


Author: nwhitehorn
Date: Sun Oct 17 17:31:49 2010
New Revision: 213986
URL: http://svn.freebsd.org/changeset/base/213986

Log:
  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.
  
  MFC after:	3 weeks

Modified:
  head/sys/kern/subr_clock.c

Modified: head/sys/kern/subr_clock.c
==============================================================================
--- head/sys/kern/subr_clock.c	Sun Oct 17 16:46:54 2010	(r213985)
+++ head/sys/kern/subr_clock.c	Sun Oct 17 17:31:49 2010	(r213986)
@@ -164,10 +164,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-all mailing list