drm/sti: add debugfs fps_show/fps_get mechanism for planes
authorVincent Abriou <vincent.abriou@st.com>
Mon, 8 Feb 2016 10:34:31 +0000 (11:34 +0100)
committerVincent Abriou <vincent.abriou@st.com>
Fri, 26 Feb 2016 09:06:23 +0000 (10:06 +0100)
commitbf8f9e4a810206dc91f82a68f50b0eb34f8710ef
treef17d540e3de474d45b1fe4b89626d274ad84969c
parentb514bee76511022220256a4d1733d46a4f4f4cc0
drm/sti: add debugfs fps_show/fps_get mechanism for planes

Display fps on demand for each used plane:
cat /sys/kernel/debug/dri/0/fps_get
Display fps in live in the console for each used plane:
echo 255 > /sys/kernel/debug/dri/0/fps_show

Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
drivers/gpu/drm/sti/sti_cursor.c
drivers/gpu/drm/sti/sti_drv.c
drivers/gpu/drm/sti/sti_gdp.c
drivers/gpu/drm/sti/sti_hqvdp.c
drivers/gpu/drm/sti/sti_plane.c
drivers/gpu/drm/sti/sti_plane.h