Module Name:    src
Committed By:   tsutsui
Date:           Sat Dec 12 15:10:34 UTC 2009

Modified Files:
        src/sys/dev: clock_subr.h

Log Message:
Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/clock_subr.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/clock_subr.h
diff -u src/sys/dev/clock_subr.h:1.20 src/sys/dev/clock_subr.h:1.21
--- src/sys/dev/clock_subr.h:1.20	Mon Apr 28 20:23:46 2008
+++ src/sys/dev/clock_subr.h	Sat Dec 12 15:10:34 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: clock_subr.h,v 1.20 2008/04/28 20:23:46 martin Exp $	*/
+/*	$NetBSD: clock_subr.h,v 1.21 2009/12/12 15:10:34 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -77,10 +77,8 @@
 	void	*bus_cookie;	/* Bus specific data */
 	time_t	base_time;	/* Base time (e.g. rootfs time) */
 
-	int	(*todr_gettime)(struct todr_chip_handle *,
-				volatile struct timeval *);
-	int	(*todr_settime)(struct todr_chip_handle *,
-				volatile struct timeval *);
+	int	(*todr_gettime)(struct todr_chip_handle *, struct timeval *);
+	int	(*todr_settime)(struct todr_chip_handle *, struct timeval *);
 	int	(*todr_gettime_ymdhms)(struct todr_chip_handle *,
 	    			struct clock_ymdhms *);
 	int	(*todr_settime_ymdhms)(struct todr_chip_handle *,
@@ -96,8 +94,8 @@
 /*
  * Probably these should evolve into internal routines in kern_todr.c.
  */
-extern int todr_gettime(todr_chip_handle_t tch, volatile struct timeval *);
-extern int todr_settime(todr_chip_handle_t tch, volatile struct timeval *);
+extern int todr_gettime(todr_chip_handle_t tch, struct timeval *);
+extern int todr_settime(todr_chip_handle_t tch, struct timeval *);
 
 /*
  * Machine-dependent function that machine-independent RTC drivers can

Reply via email to