summaryrefslogtreecommitdiffstats
path: root/sys/sys/smp.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-03-27 18:21:24 +0000
committermarcel <marcel@FreeBSD.org>2004-03-27 18:21:24 +0000
commitfb520fa8601bde156dded0cc31041563198d394a (patch)
treec101622f609c2f4a9be9e77e8a51b404af6d05da /sys/sys/smp.h
parentd00cd2e215da68f95aaeba84ada4b94b203c0f98 (diff)
downloadFreeBSD-src-fb520fa8601bde156dded0cc31041563198d394a.zip
FreeBSD-src-fb520fa8601bde156dded0cc31041563198d394a.tar.gz
Change the type of the various CPU masks to cpumask_t. Note that as
long as there are still explicit uses of int, whether in types or in function names (such as atomic_set_int() in sched_ule.c), we can not change cpumask_t to be anything other than u_int. See also the commit log for sys/sys/types.h, revision 1.84.
Diffstat (limited to 'sys/sys/smp.h')
-rw-r--r--sys/sys/smp.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/sys/smp.h b/sys/sys/smp.h
index 519e917..b9d57e2 100644
--- a/sys/sys/smp.h
+++ b/sys/sys/smp.h
@@ -32,7 +32,7 @@
*/
struct cpu_group {
- u_int cg_mask; /* Mask of cpus in this group. */
+ cpumask_t cg_mask; /* Mask of cpus in this group. */
int cg_count; /* Count of cpus in this group. */
int cg_children; /* Number of children groups. */
struct cpu_group *cg_child; /* Optional child group. */
@@ -47,11 +47,11 @@ extern struct cpu_top *smp_topology;
extern void (*cpustop_restartfunc)(void);
extern int smp_active;
extern int smp_cpus;
-extern volatile u_int started_cpus;
-extern volatile u_int stopped_cpus;
+extern volatile cpumask_t started_cpus;
+extern volatile cpumask_t stopped_cpus;
#endif /* SMP */
-extern u_int all_cpus;
+extern cpumask_t all_cpus;
extern u_int mp_maxid;
extern int mp_ncpus;
extern volatile int smp_started;
@@ -92,8 +92,8 @@ void cpu_mp_start(void);
void forward_signal(struct thread *);
void forward_roundrobin(void);
-int restart_cpus(u_int);
-int stop_cpus(u_int);
+int restart_cpus(cpumask_t);
+int stop_cpus(cpumask_t);
void smp_rendezvous_action(void);
#endif /* SMP */
void smp_rendezvous(void (*)(void *),
OpenPOWER on IntegriCloud