for nfs_timer_ch, use callout_schedule rather than callout_reset

as the former is a little more efficient.
This commit is contained in:
yamt 2003-10-09 13:23:33 +00:00
parent ab073a34f8
commit f2aa877507
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_socket.c,v 1.98 2003/08/16 18:09:14 yamt Exp $ */
/* $NetBSD: nfs_socket.c,v 1.99 2003/10/09 13:23:33 yamt Exp $ */
/*
* Copyright (c) 1989, 1991, 1993, 1995
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_socket.c,v 1.98 2003/08/16 18:09:14 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: nfs_socket.c,v 1.99 2003/10/09 13:23:33 yamt Exp $");
#include "fs_nfs.h"
#include "opt_nfs.h"
@ -147,7 +147,7 @@ int nfsrtton = 0;
struct nfsrtt nfsrtt;
struct nfsreqhead nfs_reqq;
struct callout nfs_timer_ch = CALLOUT_INITIALIZER;
struct callout nfs_timer_ch = CALLOUT_INITIALIZER_SETFUNC(nfs_timer, NULL);
/*
* Initialize sockets and congestion for a new NFS connection.
@ -1488,7 +1488,7 @@ nfs_timer(arg)
}
#endif /* NFSSERVER */
splx(s);
callout_reset(&nfs_timer_ch, nfs_ticks, nfs_timer, NULL);
callout_schedule(&nfs_timer_ch, nfs_ticks);
}
/*ARGSUSED*/