diff options
| -rw-r--r-- | tools/perf/arch/x86/util/tsc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/arch/x86/util/tsc.c b/tools/perf/arch/x86/util/tsc.c index f1117441cdcd..9570c2b0f83c 100644 --- a/tools/perf/arch/x86/util/tsc.c +++ b/tools/perf/arch/x86/util/tsc.c | |||
| @@ -10,11 +10,11 @@ | |||
| 10 | 10 | ||
| 11 | u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc) | 11 | u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc) |
| 12 | { | 12 | { |
| 13 | u64 time, quot, rem; | 13 | u64 t, quot, rem; |
| 14 | 14 | ||
| 15 | time = ns - tc->time_zero; | 15 | t = ns - tc->time_zero; |
| 16 | quot = time / tc->time_mult; | 16 | quot = t / tc->time_mult; |
| 17 | rem = time % tc->time_mult; | 17 | rem = t % tc->time_mult; |
| 18 | return (quot << tc->time_shift) + | 18 | return (quot << tc->time_shift) + |
| 19 | (rem << tc->time_shift) / tc->time_mult; | 19 | (rem << tc->time_shift) / tc->time_mult; |
| 20 | } | 20 | } |
