From: Andi Kleen on

Just dead code I believe

Cc: peterz(a)infradead.org
Cc: mingo(a)elte.hu

Signed-off-by: Andi Kleen <ak(a)linux.intel.com>

---
arch/x86/kernel/cpu/perf_event.c | 5 -----
1 file changed, 5 deletions(-)

Index: linux-2.6.35-rc2-gcc/arch/x86/kernel/cpu/perf_event.c
===================================================================
--- linux-2.6.35-rc2-gcc.orig/arch/x86/kernel/cpu/perf_event.c
+++ linux-2.6.35-rc2-gcc/arch/x86/kernel/cpu/perf_event.c
@@ -953,12 +953,9 @@ static void x86_pmu_enable_event(struct
static int x86_pmu_enable(struct perf_event *event)
{
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
- struct hw_perf_event *hwc;
int assign[X86_PMC_IDX_MAX];
int n, n0, ret;

- hwc = &event->hw;
-
n0 = cpuc->n_events;
n = collect_events(cpuc, event, false);
if (n < 0)
@@ -1122,7 +1119,6 @@ static int x86_pmu_handle_irq(struct pt_
struct perf_sample_data data;
struct cpu_hw_events *cpuc;
struct perf_event *event;
- struct hw_perf_event *hwc;
int idx, handled = 0;
u64 val;

@@ -1135,7 +1131,6 @@ static int x86_pmu_handle_irq(struct pt_
continue;

event = cpuc->events[idx];
- hwc = &event->hw;

val = x86_perf_event_update(event);
if (val & (1ULL << (x86_pmu.cntval_bits - 1)))
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/