diff options
Diffstat (limited to 'tools/perf/arch/x86/util/tsc.c')
| -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 9570c2b0f83..40021fa3129 100644 --- a/tools/perf/arch/x86/util/tsc.c +++ b/tools/perf/arch/x86/util/tsc.c @@ -4,7 +4,7 @@  #include <linux/perf_event.h>  #include "../../perf.h" -#include "../../util/types.h" +#include <linux/types.h>  #include "../../util/debug.h"  #include "tsc.h" @@ -32,7 +32,7 @@ u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc)  int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc,  			     struct perf_tsc_conversion *tc)  { -	bool cap_usr_time_zero; +	bool cap_user_time_zero;  	u32 seq;  	int i = 0; @@ -42,7 +42,7 @@ int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc,  		tc->time_mult = pc->time_mult;  		tc->time_shift = pc->time_shift;  		tc->time_zero = pc->time_zero; -		cap_usr_time_zero = pc->cap_usr_time_zero; +		cap_user_time_zero = pc->cap_user_time_zero;  		rmb();  		if (pc->lock == seq && !(seq & 1))  			break; @@ -52,7 +52,7 @@ int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc,  		}  	} -	if (!cap_usr_time_zero) +	if (!cap_user_time_zero)  		return -EOPNOTSUPP;  	return 0;  | 
