Get rid of #ifdef CPUDEBUG. CPU signature is always displayed.
This commit is contained in:
parent
9ebe0ee7a6
commit
43bc578d8b
|
@ -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.
|
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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_cputype.h"
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
|
@ -1687,10 +1687,7 @@ identifycpu(struct cpu_info *ci)
|
||||||
{
|
{
|
||||||
const char *name, *modifier, *vendorname, *brand = "";
|
const char *name, *modifier, *vendorname, *brand = "";
|
||||||
int class = CPUCLASS_386, vendor, i, max;
|
int class = CPUCLASS_386, vendor, i, max;
|
||||||
int family, model, modif;
|
int modif, family, model, step;
|
||||||
#ifdef CPUDEBUG
|
|
||||||
int step;
|
|
||||||
#endif
|
|
||||||
const struct cpu_cpuid_nameclass *cpup = NULL;
|
const struct cpu_cpuid_nameclass *cpup = NULL;
|
||||||
const struct cpu_cpuid_family *cpufam;
|
const struct cpu_cpuid_family *cpufam;
|
||||||
char *cpuname = ci->ci_dev->dv_xname;
|
char *cpuname = ci->ci_dev->dv_xname;
|
||||||
|
@ -1718,11 +1715,9 @@ identifycpu(struct cpu_info *ci)
|
||||||
if (family < CPU_MINFAMILY)
|
if (family < CPU_MINFAMILY)
|
||||||
panic("identifycpu: strange family value");
|
panic("identifycpu: strange family value");
|
||||||
model = CPUID2MODEL(ci->ci_signature);
|
model = CPUID2MODEL(ci->ci_signature);
|
||||||
#ifdef CPUDEBUG
|
|
||||||
step = CPUID2STEPPING(ci->ci_signature);
|
step = CPUID2STEPPING(ci->ci_signature);
|
||||||
printf("%s: family %x model %x step %x\n", cpuname, family,
|
printf("%s: family %x model %x step %x\n", cpuname, family,
|
||||||
model, step);
|
model, step);
|
||||||
#endif
|
|
||||||
|
|
||||||
for (i = 0; i < max; i++) {
|
for (i = 0; i < max; i++) {
|
||||||
if (!strncmp((char *)ci->ci_vendor,
|
if (!strncmp((char *)ci->ci_vendor,
|
||||||
|
|
Loading…
Reference in New Issue