summaryrefslogtreecommitdiffstats
path: root/kernel/tools/power/cpupower/debug
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tools/power/cpupower/debug')
-rw-r--r--kernel/tools/power/cpupower/debug/i386/dump_psb.c2
-rw-r--r--kernel/tools/power/cpupower/debug/kernel/cpufreq-test_tsc.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/kernel/tools/power/cpupower/debug/i386/dump_psb.c b/kernel/tools/power/cpupower/debug/i386/dump_psb.c
index 8d6a47514..2c768cf70 100644
--- a/kernel/tools/power/cpupower/debug/i386/dump_psb.c
+++ b/kernel/tools/power/cpupower/debug/i386/dump_psb.c
@@ -134,7 +134,7 @@ next_one:
}
static struct option info_opts[] = {
- {.name = "numpst", .has_arg=no_argument, .flag=NULL, .val='n'},
+ {"numpst", no_argument, NULL, 'n'},
};
void print_help(void)
diff --git a/kernel/tools/power/cpupower/debug/kernel/cpufreq-test_tsc.c b/kernel/tools/power/cpupower/debug/kernel/cpufreq-test_tsc.c
index 5224ee5b3..6ff8383f2 100644
--- a/kernel/tools/power/cpupower/debug/kernel/cpufreq-test_tsc.c
+++ b/kernel/tools/power/cpupower/debug/kernel/cpufreq-test_tsc.c
@@ -81,11 +81,11 @@ static int __init cpufreq_test_tsc(void)
printk(KERN_DEBUG "start--> \n");
then = read_pmtmr();
- rdtscll(then_tsc);
+ then_tsc = rdtsc();
for (i=0;i<20;i++) {
mdelay(100);
now = read_pmtmr();
- rdtscll(now_tsc);
+ now_tsc = rdtsc();
diff = (now - then) & 0xFFFFFF;
diff_tsc = now_tsc - then_tsc;
printk(KERN_DEBUG "t1: %08u t2: %08u diff_pmtmr: %08u diff_tsc: %016llu\n", then, now, diff, diff_tsc);