Skip to content

Commit

Permalink
tools/power turbostat: fix compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Len Brown committed Mar 13, 2016
1 parent b7d8c14 commit 58cc30a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/power/x86/turbostat/turbostat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ int has_config_tdp(unsigned int family, unsigned int model)
}

static void
dump_cstate_pstate_config_info(family, model)
dump_cstate_pstate_config_info(int family, int model)
{
if (!do_nhm_platform_info)
return;
Expand Down Expand Up @@ -2250,7 +2250,7 @@ int print_perf_limit(struct thread_data *t, struct core_data *c, struct pkg_data
#define RAPL_POWER_GRANULARITY 0x7FFF /* 15 bit power granularity */
#define RAPL_TIME_GRANULARITY 0x3F /* 6 bit time granularity */

double get_tdp(model)
double get_tdp(int model)
{
unsigned long long msr;

Expand Down Expand Up @@ -2364,7 +2364,7 @@ void rapl_probe(unsigned int family, unsigned int model)
return;
}

void perf_limit_reasons_probe(family, model)
void perf_limit_reasons_probe(int family, int model)
{
if (!genuine_intel)
return;
Expand Down Expand Up @@ -2974,7 +2974,7 @@ void process_cpuid()
perf_limit_reasons_probe(family, model);

if (debug)
dump_cstate_pstate_config_info();
dump_cstate_pstate_config_info(family, model);

if (has_skl_msrs(family, model))
calculate_tsc_tweak();
Expand Down

0 comments on commit 58cc30a

Please sign in to comment.