]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/kernel/cpu/perf_event.c
perf: Provide generic perf_sample_data initialization
[net-next-2.6.git] / arch / x86 / kernel / cpu / perf_event.c
index 97cddbf32936f581b70ed6717486568355612cff..42aafd11e1705621dbb06de06e184432c87d9931 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);