Skip to content

Commit

Permalink
Make more functions static in sysFeatures_intel_uncorefreq.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatix committed Oct 14, 2024
1 parent 8da2d38 commit 64eda43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sysFeatures_intel_uncorefreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <registers.h>
#include <bitUtil.h>

int intel_uncorefreq_test(void)
static int intel_uncorefreq_test(void)
{
const int retval1 = likwid_sysft_foreach_socket_testmsr(MSR_UNCORE_FREQ);
if (retval1 < 0)
Expand All @@ -27,7 +27,7 @@ int intel_uncorefreq_test(void)
return retval1 && retval2;
}

int intel_uncore_cur_freq_getter(const LikwidDevice_t device, char** value)
static int intel_uncore_cur_freq_getter(const LikwidDevice_t device, char** value)
{
if ((!device) || (!value) || (device->type != DEVICE_TYPE_SOCKET))
{
Expand All @@ -42,7 +42,7 @@ int intel_uncore_cur_freq_getter(const LikwidDevice_t device, char** value)
return likwid_sysft_uint64_to_string(field64(msrData, 0, 8) * 100, value);
}

int intel_uncore_min_freq_getter(const LikwidDevice_t device, char** value)
static int intel_uncore_min_freq_getter(const LikwidDevice_t device, char** value)
{
if ((!device) || (!value) || (device->type != DEVICE_TYPE_SOCKET))
{
Expand All @@ -57,7 +57,7 @@ int intel_uncore_min_freq_getter(const LikwidDevice_t device, char** value)
return likwid_sysft_uint64_to_string(field64(msrData, 8, 8) * 100, value);
}

int intel_uncore_max_freq_getter(const LikwidDevice_t device, char** value)
static int intel_uncore_max_freq_getter(const LikwidDevice_t device, char** value)
{
if ((!device) || (!value) || (device->type != DEVICE_TYPE_SOCKET))
{
Expand Down

0 comments on commit 64eda43

Please sign in to comment.