make the public declaration of "hardclock_ticks" signed again; other

code (kernel timeout/callout) does comparisions with it
This commit is contained in:
drochner 2006-06-08 17:23:11 +00:00
parent 41eefa78ba
commit 698fb4fb6c
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_clock.c,v 1.99 2006/06/07 22:33:39 kardel Exp $ */
/* $NetBSD: kern_clock.c,v 1.100 2006/06/08 17:23:11 drochner Exp $ */
/*-
* Copyright (c) 2000, 2004 The NetBSD Foundation, Inc.
@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_clock.c,v 1.99 2006/06/07 22:33:39 kardel Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_clock.c,v 1.100 2006/06/08 17:23:11 drochner Exp $");
#include "opt_ntp.h"
#include "opt_multiprocessor.h"
@ -332,7 +332,7 @@ int profhz;
int profsrc;
int schedhz;
int profprocs;
u_int hardclock_ticks;
int hardclock_ticks;
static int statscheddiv; /* stat => sched divider (used if schedhz == 0) */
static int psdiv; /* prof => stat divider */
int psratio; /* ratio: prof / stat */
@ -373,7 +373,7 @@ static struct timecounter intr_timecounter = {
static u_int
get_intr_timecount(struct timecounter *tc)
{
return hardclock_ticks;
return (u_int)hardclock_ticks;
}
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: kernel.h,v 1.24 2006/06/07 22:34:18 kardel Exp $ */
/* $NetBSD: kernel.h,v 1.25 2006/06/08 17:23:11 drochner Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -55,7 +55,7 @@ extern int rtc_offset; /* offset of rtc from UTC in minutes */
extern int cold; /* still working on startup */
extern int tick; /* usec per tick (1000000 / hz) */
extern int tickadj; /* "standard" clock skew, us./tick */
extern u_int hardclock_ticks; /* # of hardclock ticks */
extern int hardclock_ticks; /* # of hardclock ticks */
#ifndef __HAVE_TIMECOUNTER
extern int tickfix; /* periodic tick adj. tick not integral */
extern int tickfixinterval; /* interval at which to apply adjustment */