Rename cpuspeed to cpu_speed as parammeter in tx39clock_cpuspeed() to

avoid shadowing warning.
This commit is contained in:
he 2005-06-07 12:10:44 +00:00
parent 7eb00d0e60
commit a6b58673ef
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tx39clock.c,v 1.16 2003/12/30 03:54:35 shin Exp $ */
/* $NetBSD: tx39clock.c,v 1.17 2005/06/07 12:10:44 he Exp $ */
/*-
* Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tx39clock.c,v 1.16 2003/12/30 03:54:35 shin Exp $");
__KERNEL_RCSID(0, "$NetBSD: tx39clock.c,v 1.17 2005/06/07 12:10:44 he Exp $");
#include "opt_tx39clock_debug.h"
@ -150,7 +150,7 @@ tx39clock_attach(struct device *parent, struct device *self, void *aux)
* cpuspeed ... instructions-per-microsecond
*/
void
tx39clock_cpuspeed(int *cpuclock, int *cpuspeed)
tx39clock_cpuspeed(int *cpuclock, int *cpu_speed)
{
struct txtime t0, t1;
int elapsed;
@ -175,7 +175,7 @@ tx39clock_cpuspeed(int *cpuclock, int *cpuspeed)
elapsed = t1.t_lo - t0.t_lo;
*cpuclock = (100000000 / elapsed) * TX39_RTCLOCK;
*cpuspeed = *cpuclock / 1000000;
*cpu_speed = *cpuclock / 1000000;
}
void