Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2014 01:21:47 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r271658 - in head/sys: kern sys
Message-ID:  <201409160121.s8G1Ll0L031243@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409160121.s8G1Ll0L031243>