Searched refs:cpuset (Results 1 - 4 of 4) sorted by relevance

/xsrc/external/mit/MesaLib/dist/src/util/
H A Du_thread.h173 cpu_set_t cpuset; local in function:util_set_thread_affinity
177 if (pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset) != 0)
182 if (CPU_ISSET(i, &cpuset))
188 cpuset_t *cpuset; local in function:util_set_thread_affinity
189 cpuset = cpuset_create();
190 if (cpuset != NULL) {
191 cpuset_zero(cpuset);
192 for (unsigned i = 0; i < cpuset_size(cpuset); i++)
193 cpuset_set(i, cpuset);
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/util/
H A Du_thread.h87 cpu_set_t cpuset; local in function:util_pin_thread_to_L3
89 CPU_ZERO(&cpuset);
91 CPU_SET(L3_index * cores_per_L3 + i, &cpuset);
92 pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);
107 cpu_set_t cpuset; local in function:util_get_L3_for_pinned_thread
109 if (pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset) == 0) {
113 if (CPU_ISSET(i, &cpuset)) {
H A Du_queue.c266 cpuset_t *cpuset; local in function:util_queue_thread_func
267 cpuset = cpuset_create();
268 if (cpuset != NULL) {
269 cpuset_zero(cpuset);
270 for (unsigned i = 0; i < cpuset_size(cpuset); i++)
271 cpuset_set(i, cpuset);
273 pthread_setaffinity_np(pthread_self(), cpuset_size(cpuset), cpuset);
274 cpuset_destroy(cpuset);
277 cpu_set_t cpuset;
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/swr/rasterizer/core/core/
H A Dthreads.cpp362 cpu_set_t cpuset; local in function:bindThread
364 CPU_ZERO(&cpuset);
365 CPU_SET(threadId, &cpuset);
367 int err = pthread_setaffinity_np(thread, sizeof(cpu_set_t), &cpuset);

Completed in 5 milliseconds