Skip to content

Commit

Permalink
Address Werror=format and Werror=unused-variable on Juno (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpatki committed Mar 11, 2024
1 parent d3f847b commit c4c2cc3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/variorum/ARM/neoverse_N1_power_features.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ int arm_cpu_neoverse_n1_get_clocks_data(int chipid, int verbose, FILE *output)

for (core_iter = 0; core_iter < NUM_CORES; core_iter++)
{
sprintf(freq_fname, "%s%d/scaling_cur_freq", freq_path, core_iter);
sprintf(freq_fname, "%s%lu/scaling_cur_freq", freq_path, core_iter);
int freq_fd = open(freq_fname, O_RDONLY);
if (!freq_fd)
{
Expand Down Expand Up @@ -274,16 +274,13 @@ int arm_cpu_neoverse_n1_get_clocks_data(int chipid, int verbose, FILE *output)

int arm_cpu_neoverse_n1_cap_socket_frequency(int socketid, int new_freq)
{
static int init_output = 0;
uint64_t core_iter;
uint64_t aggregate_freq = 0;

char freq_fname[4096];
char *freq_path = "/sys/devices/system/cpu/cpufreq/policy";

for (core_iter = 0; core_iter < NUM_CORES; core_iter++)
{
sprintf(freq_fname, "%s%d/scaling_setspeed", freq_path, core_iter);
sprintf(freq_fname, "%s%lu/scaling_setspeed", freq_path, core_iter);
int freq_fd = open(freq_fname, O_WRONLY);
if (!freq_fd)
{
Expand Down

0 comments on commit c4c2cc3

Please sign in to comment.