| 753 | } |
| 754 | |
| 755 | static void |
| 756 | taskqgroup_binder(void *ctx) |
| 757 | { |
| 758 | struct taskq_bind_task *gtask; |
| 759 | cpuset_t mask; |
| 760 | int error; |
| 761 | |
| 762 | gtask = ctx; |
| 763 | CPU_ZERO(&mask); |
| 764 | CPU_SET(gtask->bt_cpuid, &mask); |
| 765 | error = cpuset_setthread(curthread->td_tid, &mask); |
| 766 | thread_lock(curthread); |
| 767 | sched_bind(curthread, gtask->bt_cpuid); |
| 768 | thread_unlock(curthread); |
| 769 | |
| 770 | if (error) |
| 771 | printf("%s: binding curthread failed: %d\n", __func__, error); |
| 772 | free(gtask, M_DEVBUF); |
| 773 | } |
| 774 | |
| 775 | void |
| 776 | taskqgroup_bind(struct taskqgroup *qgroup) |
nothing calls this directly
no test coverage detected