diff options
author | andrei <none@none> | 2006-01-09 19:34:47 -0800 |
---|---|---|
committer | andrei <none@none> | 2006-01-09 19:34:47 -0800 |
commit | 8949bcd619d78e849deef983cb8310bc3aa3e242 (patch) | |
tree | 7bcceaa87732a04b802d6b8675811a939cf8f45d /usr/src/uts/common/os/cpu.c | |
parent | 0e838bce24ec3ad3016a7a88671233c2663838ad (diff) | |
download | illumos-joyent-8949bcd619d78e849deef983cb8310bc3aa3e242.tar.gz |
6282049 CMT update needed for x86 CPU detection
6311990 Opteron memory latency probing sometimes confused during boot
6366758 cpu_info.core_id kstats
6366886 FPU bit is not set on AMD K6/3+ system
Diffstat (limited to 'usr/src/uts/common/os/cpu.c')
-rw-r--r-- | usr/src/uts/common/os/cpu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/cpu.c b/usr/src/uts/common/os/cpu.c index 1adfe6b28c..e9f4453f81 100644 --- a/usr/src/uts/common/os/cpu.c +++ b/usr/src/uts/common/os/cpu.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -2072,6 +2072,7 @@ static struct { kstat_named_t ci_cpu_fru; #endif kstat_named_t ci_brandstr; + kstat_named_t ci_core_id; } cpu_info_template = { { "state", KSTAT_DATA_CHAR }, { "state_begin", KSTAT_DATA_LONG }, @@ -2085,6 +2086,7 @@ static struct { { "cpu_fru", KSTAT_DATA_STRING }, #endif { "brand", KSTAT_DATA_STRING }, + { "core_id", KSTAT_DATA_LONG }, }; static kmutex_t cpu_info_template_lock; @@ -2136,6 +2138,7 @@ cpu_info_kstat_update(kstat_t *ksp, int rw) kstat_named_setstr(&cpu_info_template.ci_cpu_fru, cpu_fru_fmri(cp)); #endif kstat_named_setstr(&cpu_info_template.ci_brandstr, cp->cpu_brandstr); + cpu_info_template.ci_core_id.value.l = chip_plat_get_coreid(cp); return (0); } |