summaryrefslogtreecommitdiffstats
path: root/sys/sun4v
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-08-11 23:22:53 +0000
committerjhb <jhb@FreeBSD.org>2010-08-11 23:22:53 +0000
commit1c3734f021a7d3355bb5398297134824bae01846 (patch)
tree249552957600878d34538b3e89363e53ac6d8b92 /sys/sun4v
parentc320859512bcf34cce7e9d6a7d7ce616b7c6a950 (diff)
downloadFreeBSD-src-1c3734f021a7d3355bb5398297134824bae01846.zip
FreeBSD-src-1c3734f021a7d3355bb5398297134824bae01846.tar.gz
Update various places that store or manipulate CPU masks to use cpumask_t
instead of int or u_int. Since cpumask_t is currently u_int on all platforms this should just be a cosmetic change.
Diffstat (limited to 'sys/sun4v')
-rw-r--r--sys/sun4v/include/smp.h4
-rw-r--r--sys/sun4v/sun4v/mp_machdep.c2
-rw-r--r--sys/sun4v/sun4v/pmap.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/sun4v/include/smp.h b/sys/sun4v/include/smp.h
index 4f5fc76..56c50eb 100644
--- a/sys/sun4v/include/smp.h
+++ b/sys/sun4v/include/smp.h
@@ -59,12 +59,12 @@ struct cpu_start_args {
};
struct ipi_cache_args {
- u_int ica_mask;
+ cpumask_t ica_mask;
vm_paddr_t ica_pa;
};
struct ipi_tlb_args {
- u_int ita_mask;
+ cpumask_t ita_mask;
struct pmap *ita_pmap;
u_long ita_start;
u_long ita_end;
diff --git a/sys/sun4v/sun4v/mp_machdep.c b/sys/sun4v/sun4v/mp_machdep.c
index a5fa692..2e9a378 100644
--- a/sys/sun4v/sun4v/mp_machdep.c
+++ b/sys/sun4v/sun4v/mp_machdep.c
@@ -115,7 +115,7 @@ vm_offset_t mp_tramp;
u_int mp_boot_mid;
-static volatile u_int shutdown_cpus;
+static volatile cpumask_t shutdown_cpus;
void cpu_mp_unleash(void *);
SYSINIT(cpu_mp_unleash, SI_SUB_SMP, SI_ORDER_FIRST, cpu_mp_unleash, NULL);
diff --git a/sys/sun4v/sun4v/pmap.c b/sys/sun4v/sun4v/pmap.c
index f6e3485..db4c245 100644
--- a/sys/sun4v/sun4v/pmap.c
+++ b/sys/sun4v/sun4v/pmap.c
@@ -1451,7 +1451,7 @@ pmap_ipi(pmap_t pmap, char *func, uint64_t arg1, uint64_t arg2)
{
int i, cpu_count, retried;
- u_int cpus;
+ cpumask_t cpus;
cpumask_t cpumask, active, curactive;
cpumask_t active_total, ackmask;
uint16_t *cpulist;
OpenPOWER on IntegriCloud