diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2017-02-07 04:16:15 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-02-07 15:45:02 -0500 |
commit | 5ac74757eef78d69cd3aabe503b29aff471fdd56 (patch) | |
tree | a7729f9fa952d58b6a58e0651bde691e10b77039 /drivers/gpu/drm/drm_irq.c | |
parent | 967dd48417874dd25491a4e933648f394a64f70f (diff) |
drm: unexport function drm_vblank_no_hw_counter()
The function drm_vblank_no_hw_counter() is now only used in core vblank
wrapper code. Let's unexport it by making it a static function.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1486458995-31018-4-git-send-email-shawnguo@kernel.org
Diffstat (limited to 'drivers/gpu/drm/drm_irq.c')
-rw-r--r-- | drivers/gpu/drm/drm_irq.c | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 646b3e57b9ad..1906723af389 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c | |||
@@ -89,6 +89,16 @@ static void store_vblank(struct drm_device *dev, unsigned int pipe, | |||
89 | write_sequnlock(&vblank->seqlock); | 89 | write_sequnlock(&vblank->seqlock); |
90 | } | 90 | } |
91 | 91 | ||
92 | /* | ||
93 | * "No hw counter" fallback implementation of .get_vblank_counter() hook, | ||
94 | * if there is no useable hardware frame counter available. | ||
95 | */ | ||
96 | static u32 drm_vblank_no_hw_counter(struct drm_device *dev, unsigned int pipe) | ||
97 | { | ||
98 | WARN_ON_ONCE(dev->max_vblank_count != 0); | ||
99 | return 0; | ||
100 | } | ||
101 | |||
92 | static u32 __get_vblank_counter(struct drm_device *dev, unsigned int pipe) | 102 | static u32 __get_vblank_counter(struct drm_device *dev, unsigned int pipe) |
93 | { | 103 | { |
94 | if (drm_core_check_feature(dev, DRIVER_MODESET)) { | 104 | if (drm_core_check_feature(dev, DRIVER_MODESET)) { |
@@ -1748,21 +1758,3 @@ bool drm_crtc_handle_vblank(struct drm_crtc *crtc) | |||
1748 | return drm_handle_vblank(crtc->dev, drm_crtc_index(crtc)); | 1758 | return drm_handle_vblank(crtc->dev, drm_crtc_index(crtc)); |
1749 | } | 1759 | } |
1750 | EXPORT_SYMBOL(drm_crtc_handle_vblank); | 1760 | EXPORT_SYMBOL(drm_crtc_handle_vblank); |
1751 | |||
1752 | /** | ||
1753 | * drm_vblank_no_hw_counter - "No hw counter" implementation of .get_vblank_counter() | ||
1754 | * @dev: DRM device | ||
1755 | * @pipe: CRTC for which to read the counter | ||
1756 | * | ||
1757 | * Drivers can plug this into the .get_vblank_counter() function if | ||
1758 | * there is no useable hardware frame counter available. | ||
1759 | * | ||
1760 | * Returns: | ||
1761 | * 0 | ||
1762 | */ | ||
1763 | u32 drm_vblank_no_hw_counter(struct drm_device *dev, unsigned int pipe) | ||
1764 | { | ||
1765 | WARN_ON_ONCE(dev->max_vblank_count != 0); | ||
1766 | return 0; | ||
1767 | } | ||
1768 | EXPORT_SYMBOL(drm_vblank_no_hw_counter); | ||