summaryrefslogtreecommitdiff
path: root/overlay/power.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-11-18 12:49:24 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-11-18 12:53:04 +0000
commit8a8717eee305b2a9f58b9f5c31adc2a8847361bf (patch)
tree1744a01d0067c5947ca633c35337008b550b8ea7 /overlay/power.c
parent938b9306be240ada0e592f2bf59f428c6e0e5717 (diff)
overlay: Show power consumption without i915-pmu
The power metter was not showing up due to an erroneous check for a failure to open the i915 perf interface. Reported-by: Marius Vlad <marius.c.vlad@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/power.c')
-rw-r--r--overlay/power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/overlay/power.c b/overlay/power.c
index 6c5c3749..2f1521b8 100644
--- a/overlay/power.c
+++ b/overlay/power.c
@@ -45,7 +45,7 @@ static int perf_open(void)
attr.type = i915_type_id();
if (attr.type == 0)
- return -ENOENT;
+ return -1;
attr.config = I915_PERF_ENERGY;
attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED;