Kok, Auke wrote: > nisha jain wrote: >> Hi All, >> >> Thanks alot for the information. I will search androit related information. >> I have one more question does ACPI HW support is not enough to measure the >> power information? > > depends on what you want to measure. > >> I think all intel platforms support ACPI hw that's why i choose it. Also i >> have tried modifying the powertop code to >> see the cpu1 c and p states and not able to get any results. Can some one >> guide me on that? > > you can just read out /sys/devices/system/cpu/cpu1/cpufreq/stats/time_in_state > > (for instance) > >> I have duplicated the same code as for the cpu0 and reading the states files >> in similar fashion. >> >> I have a query on the code why there are two consecutive these calls in main >> function >> I have tried alot but not able to figure it out so far - >> >> do_proc_irq() // line 1012 >> do_proc_irq() // line 1013 >> .... >> >> My understanding is that it is to identify the interrupt generated but why >> called twice is not clear. > > no idea, arjan? >
we do incremental measurement (eg we need to calculate a delta). During the startup of powertop we call several of these function twice, so that at that point we have a valid delta (0) ... _______________________________________________ Power mailing list [email protected] http://www.bughost.org/mailman/listinfo/power
