Oops, don't stop rtc when enabling rtc oscillator - we would stall it

until rtc(4) attaches and starts the clock (that caused my Jornada to
lose about 12 secs during boot).
This commit is contained in:
uwe 2006-10-19 00:25:18 +00:00
parent 7fb3ea3f6c
commit 5e3c689570
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: clock.c,v 1.36 2006/10/11 03:20:01 uwe Exp $ */
/* $NetBSD: clock.c,v 1.37 2006/10/19 00:25:18 uwe Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.36 2006/10/11 03:20:01 uwe Exp $");
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.37 2006/10/19 00:25:18 uwe Exp $");
#include "opt_pclock.h"
#include "opt_hz.h"
@ -147,7 +147,7 @@ sh_clock_init(int flags)
sh_clock.tmuclk = SH_RTC_CLOCK;
/* Make sure RTC oscillator is enabled */
_reg_write_1(SH_(RCR2), SH_RCR2_ENABLE);
_reg_write_1(SH_(RCR2), SH_RCR2_ENABLE | SH_RCR2_START);
}
s = _cpu_exception_suspend();