summaryrefslogtreecommitdiff
path: root/arch/powerpc/perf
diff options
context:
space:
mode:
authorAnju T Sudhakar <anju@linux.vnet.ibm.com>2017-12-11 11:28:35 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2018-01-19 22:39:57 +1100
commite7673818d9510043f11502e55afee5a1ad4f8ff7 (patch)
tree70f0e74ab2537184724ac14d4eb9ba780fbf7f38 /arch/powerpc/perf
parent6cd74d2b6174957103c8f6f2cfcefe086a51e6eb (diff)
downloadlinux-next-e7673818d9510043f11502e55afee5a1ad4f8ff7.tar.gz
powerpc/perf: Remove thread_imc_pmu global variable from
Remove the global variable 'thread_imc_pmu', since it is not used in the code. Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com> Reviewed-by: madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/perf')
-rw-r--r--arch/powerpc/perf/imc-pmu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/powerpc/perf/imc-pmu.c
index 0ead3cd73caa..2a7b9323183a 100644
--- a/arch/powerpc/perf/imc-pmu.c
+++ b/arch/powerpc/perf/imc-pmu.c
@@ -40,7 +40,6 @@ static struct imc_pmu *core_imc_pmu;
/* Thread IMC data structures and variables */
static DEFINE_PER_CPU(u64 *, thread_imc_mem);
-static struct imc_pmu *thread_imc_pmu;
static int thread_imc_mem_size;
struct imc_pmu *imc_event_to_pmu(struct perf_event *event)
@@ -1263,7 +1262,6 @@ static int imc_mem_init(struct imc_pmu *pmu_ptr, struct device_node *parent,
return res;
}
- thread_imc_pmu = pmu_ptr;
break;
default:
return -EINVAL;