Skip to content
  • David Carrillo-Cisneros's avatar
    perf/core: Remove perf_cpu_context::unique_pmu · 1fd7e416
    David Carrillo-Cisneros authored and Ingo Molnar's avatar Ingo Molnar committed
    
    
    cpuctx->unique_pmu was originally introduced as a way to identify cpuctxs
    with shared pmus in order to avoid visiting the same cpuctx more than once
    in a for_each_pmu loop.
    
    cpuctx->unique_pmu == cpuctx->pmu in non-software task contexts since they
    have only one pmu per cpuctx. Since perf_pmu_sched_task() is only called in
    hw contexts, this patch replaces cpuctx->unique_pmu by cpuctx->pmu in it.
    
    The change above, together with the previous patch in this series, removed
    the remaining uses of cpuctx->unique_pmu, so we remove it altogether.
    
    Signed-off-by: default avatarDavid Carrillo-Cisneros <davidcc@google.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Borislav Petkov <bp@suse.de>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Kan Liang <kan.liang@intel.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Paul Turner <pjt@google.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Vikas Shivappa <vikas.shivappa@linux.intel.com>
    Cc: Vince Weaver <vince@deater.net>
    Cc: Vince Weaver <vincent.weaver@maine.edu>
    Link: http://lkml.kernel.org/r/20170118192454.58008-3-davidcc@google.com
    
    
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    1fd7e416