svn commit: r271658 - in head/sys: kern sys
Adrian Chadd
adrian at FreeBSD.org
Tue Sep 16 01:21:48 UTC 2014
Author: adrian
Date: Tue Sep 16 01:21:47 2014
New Revision: 271658
URL: http://svnweb.freebsd.org/changeset/base/271658
Log:
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.
Modified:
head/sys/kern/kern_cpuset.c
head/sys/sys/cpuset.h
Modified: head/sys/kern/kern_cpuset.c
==============================================================================
--- head/sys/kern/kern_cpuset.c Tue Sep 16 00:59:56 2014 (r271657)
+++ head/sys/kern/kern_cpuset.c Tue Sep 16 01:21:47 2014 (r271658)
@@ -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;
Modified: head/sys/sys/cpuset.h
==============================================================================
--- head/sys/sys/cpuset.h Tue Sep 16 00:59:56 2014 (r271657)
+++ head/sys/sys/cpuset.h Tue Sep 16 01:21:47 2014 (r271658)
@@ -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 *);
More information about the svn-src-all
mailing list