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.
This commit is contained in:
Adrian Chadd 2014-09-16 01:21:47 +00:00
parent 1481be66b5
commit 7f7528fc79
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 *);