diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2010-12-30 18:56:56 -0800 |
---|---|---|
committer | Arjan van de Ven <arjan@linux.intel.com> | 2010-12-30 18:56:56 -0800 |
commit | e08ba8fd156503abbd6f98ebca79b3d1ca2cf4a4 (patch) | |
tree | 50e5cd4cfed7f8cc4da91832640c56eba6d17e65 /devices/device.h | |
parent | 78027c388d0f7acac4a7b4015b2baa9cfac3e575 (diff) | |
download | powertop-e08ba8fd156503abbd6f98ebca79b3d1ca2cf4a4.tar.gz |
Lots of changes to support parsing who owns /dev files, and charge the power of the device to the process...
Diffstat (limited to 'devices/device.h')
-rw-r--r-- | devices/device.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/devices/device.h b/devices/device.h index ab24f74..1ebebf6 100644 --- a/devices/device.h +++ b/devices/device.h @@ -35,6 +35,7 @@ struct result_bundle; class device { public: int cached_valid; + bool hide; virtual void start_measurement(void); virtual void end_measurement(void); @@ -50,9 +51,11 @@ public: virtual double power_usage(struct result_bundle *results, struct parameter_bundle *bundle) { return 0.0; }; - virtual bool show_in_list(void) {return true;}; + virtual bool show_in_list(void) {return !hide;}; virtual int power_valid(void) { return 1;}; + + virtual void register_power_with_devlist(struct result_bundle *results, struct parameter_bundle *bundle) { ; }; }; using namespace std; |