summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-10-17 17:31:49 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-10-17 17:31:49 +0000
commitd34514657e38731d70cb714dd6684ca3174d3c8c (patch)
treeb9345e86ca44be62201f1d03b551b92a27f149a2 /sys/kern
parenta5b338a9670cf20b4e13dad7d98dd2782ad6900a (diff)
downloadFreeBSD-src-d34514657e38731d70cb714dd6684ca3174d3c8c.zip
FreeBSD-src-d34514657e38731d70cb714dd6684ca3174d3c8c.tar.gz
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
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_clock.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/subr_clock.c b/sys/kern/subr_clock.c
index ffc70af..28e0dad 100644
--- a/sys/kern/subr_clock.c
+++ b/sys/kern/subr_clock.c
@@ -164,10 +164,6 @@ clock_ct_to_ts(struct clocktime *ct, struct timespec *ts)
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;
OpenPOWER on IntegriCloud