[PATCH v4 4/7] powerpc/powernv: detect supported nest pmus and its events
Sukadev Bhattiprolu
sukadev at linux.vnet.ibm.com
Thu Jul 9 08:09:44 AEST 2015
Sukadev Bhattiprolu [sukadev at linux.vnet.ibm.com] wrote:
| | @@ -50,6 +163,15 @@ static int nest_ima_dt_parser(void)
| | p8ni->vbase = (uint64_t) phys_to_virt(p8ni->pbase);
| | }
| |
| | + /* Look for supported Nest PMU units */
| | + idx = 0;
| | + for_each_node_by_type(dev, "nest-ima-unit") {
| | + ret = nest_pmu_create(dev, idx);
| | + if (ret)
| | + return ret;
| | + idx++;
|
| idx not used?
Sorry, disregard this. Had my blinders on :-(
More information about the Linuxppc-dev
mailing list