drm/i915: add dev.i915.oa_max_sample_rate sysctl
authorRobert Bragg <robert@sixbynine.org>
Mon, 7 Nov 2016 19:49:55 +0000 (19:49 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Nov 2016 13:39:27 +0000 (14:39 +0100)
commit00319ba0434a99de12cb7241c136b5ef4aeaada7
tree121f0301ae6cddb9e561d4c572060409d5bfd610
parentccdf6341ed36e403b2c12d3ef6cb50e9f8e6bdcc
drm/i915: add dev.i915.oa_max_sample_rate sysctl

The maximum OA sampling frequency is now configurable via a
dev.i915.oa_max_sample_rate sysctl parameter.

Following the precedent set by perf's similar
kernel.perf_event_max_sample_rate the default maximum rate is 100000Hz

Signed-off-by: Robert Bragg <robert@sixbynine.org>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Sourab Gupta <sourab.gupta@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161107194957.3385-10-robert@sixbynine.org
drivers/gpu/drm/i915/i915_perf.c