-/* $OpenBSD: i80321_clock.c,v 1.9 2010/09/20 06:33:47 matthew Exp $ */
+/* $OpenBSD: i80321_clock.c,v 1.10 2015/06/13 07:16:36 jsg Exp $ */
/*
* Copyright (c) 2006 Dale Rahn <drahn@openbsd.org>
{
struct timeval rtctime;
- if (time_second == 0)
+ if (time_second == 1)
return;
microtime(&rtctime);
-/* $OpenBSD: intr.c,v 1.2 2013/09/10 12:36:57 patrick Exp $ */
+/* $OpenBSD: intr.c,v 1.3 2015/06/13 07:16:37 jsg Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
*
{
struct timeval rtctime;
- if (rtctime.tv_sec == 0)
+ if (time_second == 1)
return;
microtime(&rtctime);
-/* $OpenBSD: nvram.c,v 1.11 2015/02/10 22:42:35 miod Exp $ */
+/* $OpenBSD: nvram.c,v 1.12 2015/06/13 07:16:36 jsg Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
struct nvramsoftc *sc = (struct nvramsoftc *) nvram_cd.cd_devs[0];
struct chiptime c;
- if (time_second == 0 || sc == NULL)
+ if (time_second == 1 || sc == NULL)
return;
timetochip(&c);
-/* $OpenBSD: clock.c,v 1.39 2014/11/11 21:02:06 mpi Exp $ */
+/* $OpenBSD: clock.c,v 1.40 2015/06/13 07:16:36 jsg Exp $ */
/* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */
/*
{
struct timeval tv;
- if (time_second == 0)
+ if (time_second == 1)
return;
microtime(&tv);
-/* $OpenBSD: clock.c,v 1.12 2014/11/11 21:02:06 mpi Exp $ */
+/* $OpenBSD: clock.c,v 1.13 2015/06/13 07:16:37 jsg Exp $ */
/* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */
/*
{
struct timeval tv;
- if (time_second == 0)
+ if (time_second == 1)
return;
microtime(&tv);
-/* $OpenBSD: clock.c,v 1.56 2014/12/17 19:39:01 tedu Exp $ */
+/* $OpenBSD: clock.c,v 1.57 2015/06/13 07:16:37 jsg Exp $ */
/* $NetBSD: clock.c,v 1.41 2001/07/24 19:29:25 eeh Exp $ */
/*
{
struct timeval tv;
- if (time_second == 0)
+ if (time_second == 1)
return;
microtime(&tv);