diff options
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_cpufreq.c')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_cpufreq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/hud/hud_cpufreq.c b/src/gallium/auxiliary/hud/hud_cpufreq.c index bc77e5a14f2..abb930d7e28 100644 --- a/src/gallium/auxiliary/hud/hud_cpufreq.c +++ b/src/gallium/auxiliary/hud/hud_cpufreq.c @@ -191,7 +191,7 @@ hud_get_num_cpufreq(bool displayhelp) /* Return the number of CPU metrics we support. */ mtx_lock(&gcpufreq_mutex); if (gcpufreq_count) { - pipe_mutex_unlock(gcpufreq_mutex); + mtx_unlock(&gcpufreq_mutex); return gcpufreq_count; } @@ -201,7 +201,7 @@ hud_get_num_cpufreq(bool displayhelp) list_inithead(&gcpufreq_list); DIR *dir = opendir("/sys/devices/system/cpu"); if (!dir) { - pipe_mutex_unlock(gcpufreq_mutex); + mtx_unlock(&gcpufreq_mutex); return 0; } @@ -247,7 +247,7 @@ hud_get_num_cpufreq(bool displayhelp) } } - pipe_mutex_unlock(gcpufreq_mutex); + mtx_unlock(&gcpufreq_mutex); return gcpufreq_count; } |