diff --git a/sys/compat/linux/common/linux_misc.c b/sys/compat/linux/common/linux_misc.c index 55a800228f43..b13204c1f9ae 100644 --- a/sys/compat/linux/common/linux_misc.c +++ b/sys/compat/linux/common/linux_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.c,v 1.112 2002/11/13 08:27:10 jdolecek Exp $ */ +/* $NetBSD: linux_misc.c,v 1.113 2002/11/13 15:20:04 jdolecek Exp $ */ /*- * Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc. @@ -64,7 +64,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.112 2002/11/13 08:27:10 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.113 2002/11/13 15:20:04 jdolecek Exp $"); #include #include @@ -584,11 +584,9 @@ linux_sys_mprotect(p, v, retval) /* * This code is partly stolen from src/lib/libc/compat-43/times.c - * XXX - CLK_TCK isn't declared in /sys, just in , done here */ -#define CLK_TCK 100 -#define CONVTCK(r) (r.tv_sec * CLK_TCK + r.tv_usec / (1000000 / CLK_TCK)) +#define CONVTCK(r) (r.tv_sec * hz + r.tv_usec / (1000000 / hz)) int linux_sys_times(p, v, retval) @@ -625,6 +623,8 @@ linux_sys_times(p, v, retval) return 0; } +#undef CONVTCK + /* * Linux 'readdir' call. This code is mostly taken from the * SunOS getdents call (see compat/sunos/sunos_misc.c), though