perf intel-pt: Rationalize intel_pt_sync_switch()'s use of next_tid
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 12 Apr 2019 11:38:30 +0000 (14:38 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 May 2019 21:37:45 +0000 (18:37 -0300)
commit14f1cfd4f7b4794e2f9d2ae214bcf049654b0b5c
tree50daac162069c464a67b6509a2b92c88649b7210
parentc7b4f15ff79b539fed4c382e52e988548081bc9d
perf intel-pt: Rationalize intel_pt_sync_switch()'s use of next_tid

Returning 1 from intel_pt_sync_switch() causes the current tid to be
set. That negates the need to keep next_tid anymore. Rationalize the
code to that effect.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20190412113830.4126-9-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt.c