perf: Provide generic perf_sample_data initialization
[linux-2.6.git] / arch / x86 / kernel / cpu / perf_event.c
index 97cddbf..42aafd1 100644 (file)
@@ -1097,8 +1097,7 @@ static int x86_pmu_handle_irq(struct pt_regs *regs)
        int idx, handled = 0;
        u64 val;
 
-       data.addr = 0;
-       data.raw = NULL;
+       perf_sample_data_init(&data, 0);
 
        cpuc = &__get_cpu_var(cpu_hw_events);