]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ibmaem: don't query the entire sensor repository when reading energy meter
authorDarrick J. Wong <djwong@us.ibm.com>
Fri, 15 Aug 2008 07:40:41 +0000 (00:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Aug 2008 15:35:44 +0000 (08:35 -0700)
commitbb15e7f286e3ecf3e85e06ad9b0019096e43a613
tree88fd7cb042f3477699cb05c780518dc7dc1ed5a5
parent9c5413eac5199b8457689eb2c9d9e75138356bd6
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 <djwong@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/ibmaem.c