summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_cpuset.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-05-31 20:23:33 +0000
committerattilio <attilio@FreeBSD.org>2011-05-31 20:23:33 +0000
commit066c7ac96c87ad7070c7f2469bab58ef10a9f636 (patch)
treed811190871d9cb791aa676d24bde2a7f86176989 /sys/kern/kern_cpuset.c
parentb1bf71d3c513adb3ecd4c1c7f5448ff4e16ace0d (diff)
downloadFreeBSD-src-066c7ac96c87ad7070c7f2469bab58ef10a9f636.zip
FreeBSD-src-066c7ac96c87ad7070c7f2469bab58ef10a9f636.tar.gz
Revert a change that crept in during MFC.
Diffstat (limited to 'sys/kern/kern_cpuset.c')
-rw-r--r--sys/kern/kern_cpuset.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/sys/kern/kern_cpuset.c b/sys/kern/kern_cpuset.c
index 5ca3be2..3b2c653 100644
--- a/sys/kern/kern_cpuset.c
+++ b/sys/kern/kern_cpuset.c
@@ -50,7 +50,6 @@ __FBSDID("$FreeBSD$");
#include <sys/cpuset.h>
#include <sys/sx.h>
#include <sys/queue.h>
-#include <sys/libkern.h>
#include <sys/limits.h>
#include <sys/bus.h>
#include <sys/interrupt.h>
@@ -661,41 +660,6 @@ cpusetobj_strprint(char *buf, const cpuset_t *set)
}
/*
- * Build a valid cpuset_t object from a string representation.
- * It expects an incoming buffer at least sized as CPUSETBUFSIZ.
- */
-int
-cpusetobj_strscan(cpuset_t *set, const char *buf)
-{
- u_int nwords;
- int i;
-
- if (strlen(buf) > CPUSETBUFSIZ - 1)
- return (-1);
-
- /* Allow to pass a shorter version of the mask when necessary. */
- nwords = 1;
- for (i = 0; buf[i] != '\0'; i++)
- if (buf[i] == ',')
- nwords++;
- if (nwords > _NCPUWORDS)
- return (-1);
-
- CPU_ZERO(set);
- for (i = nwords - 1; i > 0; i--) {
- if (!sscanf(buf, "%lx, ", &set->__bits[i]))
- return (-1);
- buf = strstr(buf, " ");
- if (buf == NULL)
- return (-1);
- buf++;
- }
- if (!sscanf(buf, "%lx", &set->__bits[0]))
- return (-1);
- return (0);
-}
-
-/*
* Apply an anonymous mask to a single thread.
*/
int
OpenPOWER on IntegriCloud