Lines Matching refs:mutex
35 * Replace the counting semaphore with a mutex and a test if the cpumask is non-empty.
143 struct semaphore mutex;
184 /* Kick the mutex that tells user space that there is work to do. Instead of
185 * trying to track the state of the mutex across multiple cpus, in user
187 * it is far easier just to grab the mutex if it is free then release it.
195 (void)(down_trylock(&data->mutex) ?: 0);
196 up(&data->mutex);
312 if (cpus_empty(data->cpu_event) && down_trylock(&data->mutex)) {
315 if (down_interruptible(&data->mutex))
645 init_MUTEX(&data->mutex);