From d3fedbed4037f564af65810a7f0ae0bb7cd5f93b Mon Sep 17 00:00:00 2001 From: adrian Date: Tue, 16 Sep 2014 01:21:47 +0000 Subject: [PATCH] Modify cpuset_setithread() to take a CPU ID as an integer, not a char. We're going to end up having > 254 CPUs at some point. --- sys/kern/kern_cpuset.c | 2 +- sys/sys/cpuset.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_cpuset.c b/sys/kern/kern_cpuset.c index f74f5ae10eda..341f998f9292 100644 --- a/sys/kern/kern_cpuset.c +++ b/sys/kern/kern_cpuset.c @@ -719,7 +719,7 @@ out: * Apply new cpumask to the ithread. */ int -cpuset_setithread(lwpid_t id, u_char cpu) +cpuset_setithread(lwpid_t id, int cpu) { struct cpuset *nset, *rset; struct cpuset *parent, *old_set; diff --git a/sys/sys/cpuset.h b/sys/sys/cpuset.h index e1ad341d3b24..ba2b7ceaa98a 100644 --- a/sys/sys/cpuset.h +++ b/sys/sys/cpuset.h @@ -118,7 +118,7 @@ struct cpuset *cpuset_thread0(void); struct cpuset *cpuset_ref(struct cpuset *); void cpuset_rel(struct cpuset *); int cpuset_setthread(lwpid_t id, cpuset_t *); -int cpuset_setithread(lwpid_t id, u_char cpu); +int cpuset_setithread(lwpid_t id, int cpu); int cpuset_create_root(struct prison *, struct cpuset **); int cpuset_setproc_update_set(struct proc *, struct cpuset *); char *cpusetobj_strprint(char *, const cpuset_t *);