~linaro-pm-wg/linaro-powertop/master

Viewing all changes in revision 374.

  • Committer: Arjan van de Ven
  • Author(s): Sergey Senozhatsky
  • Date: 2011-05-11 04:04:24 UTC
  • Revision ID: git-v1:4c4b72a9fb55681261cfb5a307d9a8e45ecc4943
Use callback in detect_power_meters() to read /proc/* directory

detect_power_meters() has the same /proc/* directory traverse code as network
and ethernet_tunable did before we switched to callback. Move read_all_nics()
code to process_directory(), which now accepts 2 parameters -- directory to
read and callback; introduce power_meters_callback() to fill power_meters.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: