Messages in this thread | | | Date | Tue, 25 Sep 2012 12:44:00 +0200 | Subject | [BUG] perf/x86: Intel uncore_pmu_to_box() local variable typo | From | Stephane Eranian <> |
| |
Hi,
I don't understand why the local variable box needs to be declared static here:
static struct intel_uncore_box * uncore_pmu_to_box(struct intel_uncore_pmu *pmu, int cpu) { static struct intel_uncore_box *box;
box = *per_cpu_ptr(pmu->box, cpu); if (box) return box; .... }
| |