]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
tools/power turbostat: fix compiler warnings
authorLen Brown <len.brown@intel.com>
Wed, 24 Feb 2016 23:16:40 +0000 (18:16 -0500)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Aug 2016 16:24:56 +0000 (10:24 -0600)
BugLink: http://bugs.launchpad.net/bugs/1591802
Signed-off-by: Len Brown <len.brown@intel.com>
(cherry picked from commit 58cc30a4e6086d542302e04eea39b2a438e4c5dd)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Kamal Mostafa <kamal@canonical.com>
tools/power/x86/turbostat/turbostat.c

index 5f9f41a3bf91ceb0648308823918289fa2a3ad29..ad5bd56004674fcdc51ad9872df17cd764371fa7 100644 (file)
@@ -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;
@@ -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;
 
@@ -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;
@@ -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();