Rafael.Vanoni wrote: > Li, Aubrey wrote: >> [snip] >>>> And battery_stat_snapshot() calls battery probe to do the rest job. >>>> I can make a patch for it if you like. Here's a patch for it. >>> >>> thanks >>> Rafael >> >> Wow, you are always so quick, :-) >> Thanks for the patch, it looks great, please feel free to commit. > > Sometimes a little too fast ;) > Here's a better patch, the previous one had a small memory leak.
Hmm..., the patch became a bit complicated. If so, kstat_battery_mod should be freed every return of ksp == NULL, shouldn't it? > >> How about the OpenSolaris conference? anything about the power? > > David Stewart gave the keynote on Thursday. One of the things > he talked > about was PM and PowerTOP. But other than that, nothing power related. > I found this link: http://www.osdevcon.org/2008/program.html But somehow your slides is not available, it would be great if you can send it to me, :-) Thanks, -Aubrey
