aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/sched_ule.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2010-11-01 00:42:25 +0000
committerDavid Xu <davidxu@FreeBSD.org>2010-11-01 00:42:25 +0000
commit444528c026704f26b412e3236f9e588b9bd4b513 (patch)
treec86496b6dc9119d84290732e3355ba3bec0aedf6 /sys/kern/sched_ule.c
parente36e3d8221223f2df2c79ec06f2c0b12fe50efcc (diff)
downloadsrc-444528c026704f26b412e3236f9e588b9bd4b513.tar.gz
src-444528c026704f26b412e3236f9e588b9bd4b513.zip
Use integer for size of cpuset, as it won't be bigger than INT_MAX,
This is requested by bge. Also move the sysctl into file kern_cpuset.c, because it should always be there, it is independent of thread scheduler.
Notes
Notes: svn path=/head/; revision=214611
Diffstat (limited to 'sys/kern/sched_ule.c')
-rw-r--r--sys/kern/sched_ule.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 641979dde5d0..00059688c9f2 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -2713,7 +2713,6 @@ sysctl_kern_sched_topology_spec(SYSCTL_HANDLER_ARGS)
return (err);
}
-static size_t _kern_cpuset_size = sizeof(cpuset_t);
#endif
SYSCTL_NODE(_kern, OID_AUTO, sched, CTLFLAG_RW, 0, "Scheduler");
@@ -2751,14 +2750,6 @@ SYSCTL_PROC(_kern_sched, OID_AUTO, topology_spec, CTLTYPE_STRING |
CTLFLAG_RD, NULL, 0, sysctl_kern_sched_topology_spec, "A",
"XML dump of detected CPU topology");
-/*
- * Return the size of cpuset_t at the kernel level
- *
- * XXX (gcooper): replace ULONG with SIZE once CTLTYPE_SIZE is implemented.
- */
-SYSCTL_ULONG(_kern_sched, OID_AUTO, cpusetsize, CTLFLAG_RD,
- &_kern_cpuset_size, 0, "Kernel-level cpuset_t struct size");
-
#endif
/* ps compat. All cpu percentages from ULE are weighted. */