Re: [PATCH] perf/x86/intel/pt: Use boot_cpu_has() because it's there

2016-04-06 Thread Borislav Petkov
On Wed, Apr 06, 2016 at 05:35:07PM +0300, Alexander Shishkin wrote: > At the moment, initialization path is using test_cpu_cap(&boot_cpu_data), > to detect PT, which is just open coding boot_cpu_has(). Use the latter > instead. > > Signed-off-by: Alexander Shishkin > --- > arch/x86/events/intel/

[PATCH] perf/x86/intel/pt: Use boot_cpu_has() because it's there

2016-04-06 Thread Alexander Shishkin
At the moment, initialization path is using test_cpu_cap(&boot_cpu_data), to detect PT, which is just open coding boot_cpu_has(). Use the latter instead. Signed-off-by: Alexander Shishkin --- arch/x86/events/intel/pt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/