lkml.org 
[lkml]   [2011]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 2/3] introduce intel_rapl driver
    From
    Date
    On Thu, 2011-05-26 at 11:43 +0200, Peter Zijlstra wrote:
    > > + for(id = 0; id < RAPL_DOMAIN_MAX; id++)
    > > + if (rapl_domains[id].valid)
    > > + perf_pmu_register(&(rapl_domains[id].pmu), rapl_domains[id].pmu.name, PERF_TYPE_SOFTWARE);
    >
    > Uhm, hell no!, you get to use type = -1.

    Also, you don't need a struct pmu per domain.


    \
     
     \ /
      Last update: 2011-05-26 12:25    [W:0.020 / U:60.948 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site