提交 e7673818 编写于 作者: A Anju T Sudhakar 提交者: Michael Ellerman

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: NAnju T Sudhakar <anju@linux.vnet.ibm.com>
Reviewed-by: Nmadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 6cd74d2b
...@@ -40,7 +40,6 @@ static struct imc_pmu *core_imc_pmu; ...@@ -40,7 +40,6 @@ static struct imc_pmu *core_imc_pmu;
/* Thread IMC data structures and variables */ /* Thread IMC data structures and variables */
static DEFINE_PER_CPU(u64 *, thread_imc_mem); static DEFINE_PER_CPU(u64 *, thread_imc_mem);
static struct imc_pmu *thread_imc_pmu;
static int thread_imc_mem_size; static int thread_imc_mem_size;
struct imc_pmu *imc_event_to_pmu(struct perf_event *event) 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, ...@@ -1263,7 +1262,6 @@ static int imc_mem_init(struct imc_pmu *pmu_ptr, struct device_node *parent,
return res; return res;
} }
thread_imc_pmu = pmu_ptr;
break; break;
default: default:
return -EINVAL; return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册