OpenCloudOS-Kernel/drivers/gpu/drm/mediatek
AngeloGioacchino Del Regno 07fb1e5bab drm/mediatek: mtk_drm_crtc: Use kmalloc in mtk_drm_crtc_duplicate_state
Optimize mtk_drm_crtc_duplicate_state() by switching from kzalloc() to
kmalloc(): the only variable of this struct that gets checked in other
functions is `pending_config`, but if that's set to false, then all of
the remaining variables will only ever be set, but not read - so, also
set `pending_config` to false.
This saves us some small overhead.

Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220118133759.112458-2-angelogioacchino.delregno@collabora.com/
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
2022-04-06 06:27:23 +08:00
..
Kconfig phy: mediatek: Move mtk_mipi_dsi_phy driver into drivers/phy/mediatek folder 2020-11-30 23:42:40 +08:00
Makefile drm/mediatek: Separate aal sub driver 2021-07-25 08:25:45 +08:00
mtk_cec.c drm/mediatek: Add missing MODULE_DEVICE_TABLE() 2021-03-31 19:38:06 +08:00
mtk_cec.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
mtk_disp_aal.c drm for v5.15-rc1 2021-09-01 11:26:46 -07:00
mtk_disp_ccorr.c drm/mediatek: Add support for Mediatek SoC MT8192 2021-11-16 07:29:48 +08:00
mtk_disp_color.c drm/mediatek: Add component_del in OVL and COLOR remove function 2021-08-12 07:00:50 +08:00
mtk_disp_drv.h drm/mediatek: Separate aal sub driver 2021-07-25 08:25:45 +08:00
mtk_disp_gamma.c drm/mediatek/mtk_disp_gamma: Strip and demote non-conformant kernel-doc header 2021-06-03 13:28:39 +02:00
mtk_disp_ovl.c media: drm/mediatek: Add pm runtime support for ovl and rdma 2022-01-28 15:30:21 +01:00
mtk_disp_rdma.c media: drm/mediatek: Add pm runtime support for ovl and rdma 2022-01-28 15:30:21 +01:00
mtk_dpi.c drm for v5.15-rc1 2021-09-01 11:26:46 -07:00
mtk_dpi_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
mtk_drm_crtc.c drm/mediatek: mtk_drm_crtc: Use kmalloc in mtk_drm_crtc_duplicate_state 2022-04-06 06:27:23 +08:00
mtk_drm_crtc.h drm-misc-next for 5.13: 2021-03-16 17:08:46 +10:00
mtk_drm_ddp_comp.c media: drm/mediatek: Get rid of mtk_smi_larb_get/put 2022-01-28 15:30:21 +01:00
mtk_drm_ddp_comp.h media: drm/mediatek: Get rid of mtk_smi_larb_get/put 2022-01-28 15:30:21 +01:00
mtk_drm_drv.c Driver core changes for 5.18-rc1 2022-03-28 12:41:28 -07:00
mtk_drm_drv.h drm/mediatek: Separate aal sub driver 2021-07-25 08:25:45 +08:00
mtk_drm_gem.c dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
mtk_drm_gem.h dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
mtk_drm_plane.c drm/mediatek: mtk_drm_plane: Use kmalloc in mtk_plane_duplicate_state 2022-04-06 06:27:23 +08:00
mtk_drm_plane.h drm/mediatek: update cursors by using async atomic update 2019-12-20 16:19:11 +08:00
mtk_dsi.c Linux 5.17-rc6 2022-02-28 14:57:14 +10:00
mtk_hdmi.c drm/mediatek: hdmi: Perform NULL pointer check for mtk_hdmi_conf 2021-12-13 21:01:11 +08:00
mtk_hdmi.h drm/mediatek: Separate mtk_hdmi_phy to an independent module 2020-09-06 07:02:54 +08:00
mtk_hdmi_ddc.c drm/mediatek: Add missing MODULE_DEVICE_TABLE() 2021-03-31 19:38:06 +08:00
mtk_hdmi_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00