Get rid of #ifdef CPUDEBUG. CPU signature is always displayed.

This commit is contained in:
junyoung 2002-12-06 17:53:52 +00:00
parent 9ebe0ee7a6
commit 43bc578d8b
1 changed files with 3 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.503 2002/12/06 14:47:07 junyoung Exp $ */
/* $NetBSD: machdep.c,v 1.504 2002/12/06 17:53:52 junyoung Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.503 2002/12/06 14:47:07 junyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.504 2002/12/06 17:53:52 junyoung Exp $");
#include "opt_cputype.h"
#include "opt_ddb.h"
@ -1687,10 +1687,7 @@ identifycpu(struct cpu_info *ci)
{
const char *name, *modifier, *vendorname, *brand = "";
int class = CPUCLASS_386, vendor, i, max;
int family, model, modif;
#ifdef CPUDEBUG
int step;
#endif
int modif, family, model, step;
const struct cpu_cpuid_nameclass *cpup = NULL;
const struct cpu_cpuid_family *cpufam;
char *cpuname = ci->ci_dev->dv_xname;
@ -1718,11 +1715,9 @@ identifycpu(struct cpu_info *ci)
if (family < CPU_MINFAMILY)
panic("identifycpu: strange family value");
model = CPUID2MODEL(ci->ci_signature);
#ifdef CPUDEBUG
step = CPUID2STEPPING(ci->ci_signature);
printf("%s: family %x model %x step %x\n", cpuname, family,
model, step);
#endif
for (i = 0; i < max; i++) {
if (!strncmp((char *)ci->ci_vendor,