Unused under /sys, survived a kernel build without problems.


Index: kern/kern_sched.c
===================================================================
RCS file: /cvs/src/sys/kern/kern_sched.c,v
retrieving revision 1.44
diff -u -p -u -p -r1.44 kern_sched.c
--- kern/kern_sched.c   21 Jan 2017 05:42:03 -0000      1.44
+++ kern/kern_sched.c   1 Feb 2017 04:04:37 -0000
@@ -721,12 +721,6 @@ cpuset_init_cpu(struct cpu_info *ci)
 }
 
 void
-cpuset_clear(struct cpuset *cs)
-{
-       memset(cs, 0, sizeof(*cs));
-}
-
-void
 cpuset_add(struct cpuset *cs, struct cpu_info *ci)
 {
        unsigned int num = CPU_INFO_UNIT(ci);
@@ -748,12 +742,6 @@ cpuset_isset(struct cpuset *cs, struct c
 }
 
 void
-cpuset_add_all(struct cpuset *cs)
-{
-       cpuset_copy(cs, &cpuset_all);
-}
-
-void
 cpuset_copy(struct cpuset *to, struct cpuset *from)
 {
        memcpy(to, from, sizeof(*to));
@@ -769,15 +757,6 @@ cpuset_first(struct cpuset *cs)
                        return (cpuset_infos[i * 32 + ffs(cs->cs_set[i]) - 1]);
 
        return (NULL);
-}
-
-void
-cpuset_union(struct cpuset *to, struct cpuset *a, struct cpuset *b)
-{
-       int i;
-
-       for (i = 0; i < CPUSET_ASIZE(ncpus); i++)
-               to->cs_set[i] = a->cs_set[i] | b->cs_set[i];
 }
 
 void
Index: sys/proc.h
===================================================================
RCS file: /cvs/src/sys/sys/proc.h,v
retrieving revision 1.232
diff -u -p -u -p -r1.232 proc.h
--- sys/proc.h  31 Jan 2017 07:44:55 -0000      1.232
+++ sys/proc.h  1 Feb 2017 04:04:37 -0000
@@ -581,13 +581,10 @@ struct cpuset {
 
 void cpuset_init_cpu(struct cpu_info *);
 
-void cpuset_clear(struct cpuset *);
 void cpuset_add(struct cpuset *, struct cpu_info *);
 void cpuset_del(struct cpuset *, struct cpu_info *);
 int cpuset_isset(struct cpuset *, struct cpu_info *);
-void cpuset_add_all(struct cpuset *);
 void cpuset_copy(struct cpuset *, struct cpuset *);
-void cpuset_union(struct cpuset *, struct cpuset *, struct cpuset *);
 void cpuset_intersection(struct cpuset *t, struct cpuset *, struct cpuset *);
 void cpuset_complement(struct cpuset *, struct cpuset *, struct cpuset *);
 struct cpu_info *cpuset_first(struct cpuset *);

Attachment: cpuset.diff
Description: Binary data

Reply via email to