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:
parent
1481be66b5
commit
7f7528fc79
@ -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;
|
||||
|
@ -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 *);
|
||||
|
Loading…
x
Reference in New Issue
Block a user