diff options
Diffstat (limited to 'usr/src/uts/common/syscall/times.c')
-rw-r--r-- | usr/src/uts/common/syscall/times.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/usr/src/uts/common/syscall/times.c b/usr/src/uts/common/syscall/times.c index cefa942d57..cd268c0c0f 100644 --- a/usr/src/uts/common/syscall/times.c +++ b/usr/src/uts/common/syscall/times.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -28,8 +27,6 @@ /* All Rights Reserved */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/param.h> #include <sys/types.h> #include <sys/sysmacros.h> @@ -65,7 +62,7 @@ times(struct tms *tp) if (copyout(&p_time, tp, sizeof (p_time))) return (set_errno(EFAULT)); - ret_lbolt = lbolt; + ret_lbolt = ddi_get_lbolt(); return (ret_lbolt == -1 ? 0 : ret_lbolt); } @@ -95,7 +92,7 @@ times32(struct tms32 *tp) if (copyout(&p_time, tp, sizeof (p_time))) return (set_errno(EFAULT)); - ret_lbolt = (clock32_t)lbolt; + ret_lbolt = (clock32_t)ddi_get_lbolt(); return (ret_lbolt == (clock32_t)-1 ? 0 : ret_lbolt); } |