From owner-svn-src-head@FreeBSD.ORG Wed Feb 25 21:59:04 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 842531A2; Wed, 25 Feb 2015 21:59:04 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 55ED7F17; Wed, 25 Feb 2015 21:59:04 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1PLx4Pq053874; Wed, 25 Feb 2015 21:59:04 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1PLx3UQ053872; Wed, 25 Feb 2015 21:59:03 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201502252159.t1PLx3UQ053872@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Wed, 25 Feb 2015 21:59:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279300 - in head/sys: kern sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2015 21:59:04 -0000 Author: adrian Date: Wed Feb 25 21:59:03 2015 New Revision: 279300 URL: https://svnweb.freebsd.org/changeset/base/279300 Log: Remove taskqueue_start_threads_pinned(); there's noa generic cpuset version of this. Sponsored by: Norse Corp, Inc. Modified: head/sys/kern/subr_taskqueue.c head/sys/sys/taskqueue.h Modified: head/sys/kern/subr_taskqueue.c ============================================================================== --- head/sys/kern/subr_taskqueue.c Wed Feb 25 21:44:53 2015 (r279299) +++ head/sys/kern/subr_taskqueue.c Wed Feb 25 21:59:03 2015 (r279300) @@ -659,30 +659,6 @@ taskqueue_start_threads_cpuset(struct ta 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) Modified: head/sys/sys/taskqueue.h ============================================================================== --- head/sys/sys/taskqueue.h Wed Feb 25 21:44:53 2015 (r279299) +++ head/sys/sys/taskqueue.h Wed Feb 25 21:59:03 2015 (r279300) @@ -74,10 +74,6 @@ int taskqueue_start_threads(struct taskq 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);