diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2002-01-05 09:35:50 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2002-01-05 09:35:50 +0000 |
| commit | ab8061d84cb4d1329c680e4a4126e11931e65b14 (patch) | |
| tree | 000b086daa494cae67749c9e15635aace521e8ad /sys | |
| parent | c86b6ff551d4e38e75a3316171383de5b00c7c48 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/subr_pcpu.c | 1 | ||||
| -rw-r--r-- | sys/sys/pcpu.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_pcpu.c b/sys/kern/subr_pcpu.c index 8db9e1ff5208..132e95780fcb 100644 --- a/sys/kern/subr_pcpu.c +++ b/sys/kern/subr_pcpu.c @@ -68,6 +68,7 @@ pcpu_init(struct pcpu *pcpu, int cpuid, size_t size) KASSERT(cpuid >= 0 && cpuid < MAXCPU, ("pcpu_init: invalid cpuid %d", cpuid)); pcpu->pc_cpuid = cpuid; + pcpu->pc_cpumask = 1 << cpuid; cpuid_to_pcpu[cpuid] = pcpu; SLIST_INSERT_HEAD(&cpuhead, pcpu, pc_allcpu); cpu_pcpu_init(pcpu, cpuid, size); diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h index a4f9f43854af..8cdaf7624fc4 100644 --- a/sys/sys/pcpu.h +++ b/sys/sys/pcpu.h @@ -55,7 +55,8 @@ struct pcpu { struct timeval pc_switchtime; int pc_switchticks; u_int pc_cpuid; /* This cpu number */ - u_int pc_other_cpus; /* All other cpus */ + u_int pc_cpumask; /* This cpu mask */ + u_int pc_other_cpus; /* Mask of all other cpus */ SLIST_ENTRY(pcpu) pc_allcpu; struct lock_list_entry *pc_spinlocks; #ifdef KTR_PERCPU |
