-
Faith Ekstrand authored
Going through the for loop every time has noticable overhead. This fixes things up so we only do that once ever and then just do a hash table lookup which should be much cheaper. v2 Jason Ekstrand <jason.ekstrand@intel.com>: - Use once_flag and call_once from c11/threads.h instead of pthreads Reviewed-by: Neil Roberts <neil@linux.intel.com>
e24d17e0