From: Darrick J. Wong Date: Fri, 15 Aug 2008 07:40:41 +0000 (-0700) Subject: ibmaem: don't query the entire sensor repository when reading energy meter X-Git-Tag: v2.6.27-rc4~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb15e7f286e3ecf3e85e06ad9b0019096e43a613;p=pandora-kernel.git ibmaem: don't query the entire sensor repository when reading energy meter Currently, all sensors are read when the energy meter is queried via sysfs. This introduces a considerable amount of delay and variation in the sysfs reading, which is not desirable when trying to profile energy use. Therefore, read only the energy meters when a sysfs query comes in for them, and don't cache the results so that we always get the latest reading. Signed-off-by: Darrick J. Wong Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed