summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_pcpu.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-07-19 14:57:59 +0000
committerattilio <attilio@FreeBSD.org>2011-07-19 14:57:59 +0000
commit5dc25961e94eddb80b29ed36768ebfc81383d984 (patch)
tree452fd5167dff5595fb2cec18898d74d2d3e02394 /sys/kern/subr_pcpu.c
parent30d87a57de4398633a01035704f42b07261d708e (diff)
downloadFreeBSD-src-5dc25961e94eddb80b29ed36768ebfc81383d984.zip
FreeBSD-src-5dc25961e94eddb80b29ed36768ebfc81383d984.tar.gz
Remove pc_name member of struct pcpu.
pc_name is only included when KTR option is and it does introduce a subdle KBI breakage that totally breaks vmstat when world and kernel are not in sync. Besides, it is not used somewhere. In collabouration with: pluknet Reviewed by: jhb Approved by: re (kib)
Diffstat (limited to 'sys/kern/subr_pcpu.c')
-rw-r--r--sys/kern/subr_pcpu.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/subr_pcpu.c b/sys/kern/subr_pcpu.c
index ec6b590..ba76bb2 100644
--- a/sys/kern/subr_pcpu.c
+++ b/sys/kern/subr_pcpu.c
@@ -92,9 +92,6 @@ pcpu_init(struct pcpu *pcpu, int cpuid, size_t size)
cpu_pcpu_init(pcpu, cpuid, size);
pcpu->pc_rm_queue.rmq_next = &pcpu->pc_rm_queue;
pcpu->pc_rm_queue.rmq_prev = &pcpu->pc_rm_queue;
-#ifdef KTR
- snprintf(pcpu->pc_name, sizeof(pcpu->pc_name), "CPU %d", cpuid);
-#endif
}
void
OpenPOWER on IntegriCloud