From 273e66baef8bf930959c503041b68411bb42ff80 Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Tue, 10 Oct 2017 08:22:30 +0100 Subject: intel-gpu-overlay: Use RAPL PMU for power reading Wire up to the RAPL PMU for GPU energy readings. The only complication is that we have to add code to parse: # cat /sys/devices/power/events/energy-gpu.scale 2.3283064365386962890625e-10 v2: Link with -lm. v3: strtod can handle scientific notation, even though my initial reading of the man page did not spot that. (Chris Wilson) v4: Meson fix. Signed-off-by: Tvrtko Ursulin Reviewed-by: Chris Wilson --- overlay/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'overlay/meson.build') diff --git a/overlay/meson.build b/overlay/meson.build index ffc011cc..6b479eb8 100644 --- a/overlay/meson.build +++ b/overlay/meson.build @@ -21,7 +21,7 @@ dri2proto = dependency('dri2proto', version : '>= 2.6', required : false) cairo_xlib = dependency('cairo-xlib', required : false) xrandr = dependency('xrandr', version : '>=1.3', required : false) -gpu_overlay_deps = [ realtime, cairo, pciaccess, libdrm, libdrm_intel ] +gpu_overlay_deps = [ realtime, math, cairo, pciaccess, libdrm, libdrm_intel ] both_x11_src = '' -- cgit v1.2.3