John Fremlin wrote:
For a very simple example: suppose the CPU enters state C1. Then cur_usage[1]=1. Now suppose that it stays there for a few milliseconds. It will automatically fall down to C2.
actually.. it will not unless the OS kernel wakes up, executes code and then selects C2. Even if the HW would change C-states under you, the counters wouldn't be updated to reflect that because it's the kernel that does that counting pretty much ;)
So cur_usage[2]=1. Then there is a wake-up and it goes back to C0. Your calculation will say there were two wake-ups.
because there were two... _______________________________________________ Power mailing list [email protected] http://www.bughost.org/mailman/listinfo/power
