1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Remove taskqueue_start_threads_pinned(); there's noa generic cpuset version of this.

Sponsored by:	Norse Corp, Inc.
This commit is contained in:
Adrian Chadd 2015-02-25 21:59:03 +00:00
parent 977dc4e243
commit 75493a82e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279300
2 changed files with 0 additions and 28 deletions

View File

@ -659,30 +659,6 @@ taskqueue_start_threads_cpuset(struct taskqueue **tqp, int count, int pri,
return (error);
}
int
taskqueue_start_threads_pinned(struct taskqueue **tqp, int count, int pri,
int cpu_id, const char *name, ...)
{
cpuset_t mask;
va_list ap;
int error;
/*
* In case someone passes in NOCPU, just fall back to the
* default behaviour of "don't pin".
*/
if (cpu_id != NOCPU) {
CPU_ZERO(&mask);
CPU_SET(cpu_id, &mask);
}
va_start(ap, name);
error = _taskqueue_start_threads(tqp, count, pri,
cpu_id == NOCPU ? NULL : &mask, name, ap);
va_end(ap);
return (error);
}
static inline void
taskqueue_run_callback(struct taskqueue *tq,
enum taskqueue_callback_type cb_type)

View File

@ -74,10 +74,6 @@ int taskqueue_start_threads(struct taskqueue **tqp, int count, int pri,
const char *name, ...) __printflike(4, 5);
int taskqueue_start_threads_cpuset(struct taskqueue **tqp, int count,
int pri, cpuset_t *mask, const char *name, ...) __printflike(5, 6);
int taskqueue_start_threads_pinned(struct taskqueue **tqp, int count,
int pri, int cpu_id, const char *name,
...) __printflike(5, 6);
int taskqueue_enqueue(struct taskqueue *queue, struct task *task);
int taskqueue_enqueue_timeout(struct taskqueue *queue,
struct timeout_task *timeout_task, int ticks);