On Tuesday, October 30, 2007 4:32 AM, Eric Saxe wrote: > Li, Aubrey wrote: >> On Saturday, October 27, 2007 8:01 AM, > tesla-dev-bounces at opensolaris.org >> wrote: >> >> >>> The existing powertop implementation makes heavy use of /proc >>> under Linux. >>> For the necessary interfaces, here's what I'm thinking: >>> >>> - C-state information >>> - Number of C-states, and amount of time system is spending >>> in each one >>> - Number of C-states can eventually be exported through a >>> kstat. >>> >> >> Where do you plan to add a kstat if there is no C-state driver? >> > My guess is that the code that eventually ends up enumerating c-states > can make available a kstat, similar to what's currently > done for P-states. It's probably not a show stopper for now though, > since we don't support any other C-states besides > C1 :) >
The problem is, So far I haven't found a server platform on which BIOS exports the ACPI C-state objects out to OS. So similar with P-state issue, we will run into the "CST object not found" issue on a lot of server platforms. I still can do the driver on the mobile platform, but for now hardcoded the C-state info is fine to me. What's your thoughts? Thanks, -Aubrey
