linux_dsm_epyc7002/drivers/gpu/drm/cirrus
Thomas Zimmermann 4efd631e2f drm/cirrus: Replace ttm_bo_unref with ttm_bo_put
The function ttm_bo_put releases a reference to a TTM buffer object. The
function's name is more aligned to the Linux kernel convention of naming
ref-counting function _get and _put.

A call to ttm_bo_unref takes the address of the TTM BO object's pointer and
clears the pointer's value to NULL. This is not necessary in most cases and
sometimes even worked around by the calling code. A call to ttm_bo_put only
releases the reference without clearing the pointer.

The current behaviour of cleaning the pointer is kept in the calling code,
but should be removed if not required in a later patch.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20180731063128.11041-1-tzimmermann@suse.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2018-08-30 09:41:00 +02:00
..
cirrus_drv.c drm/cirrus: flip default from 24bpp to 16bpp 2018-08-10 07:57:47 +02:00
cirrus_drv.h drm/cirrus: Use drm_framebuffer_put to avoid kernel oops in clean-up 2018-08-10 07:57:47 +02:00
cirrus_fbdev.c drm/cirrus: flip default from 24bpp to 16bpp 2018-08-10 07:57:47 +02:00
cirrus_main.c drm/cirrus: Replace ttm_bo_unref with ttm_bo_put 2018-08-30 09:41:00 +02:00
cirrus_mode.c drm/cirrus: flip default from 24bpp to 16bpp 2018-08-10 07:57:47 +02:00
cirrus_ttm.c drm/ttm: add bo as parameter to the ttm_tt_create callback 2018-03-14 14:38:27 -05:00
Kconfig Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into drm-next 2017-01-27 11:00:42 +10:00
Makefile drm/cirrus: fix include notation and remove -Iinclude/drm flag 2017-05-16 17:18:56 +02:00