summaryrefslogtreecommitdiff
path: root/drivers/media/platform/synopsys/hdmirx
diff options
context:
space:
mode:
authorDmitry Osipenko <dmitry.osipenko@collabora.com>2025-03-06 11:05:33 +0300
committerHans Verkuil <hverkuil@xs4all.nl>2025-03-06 17:28:31 +0100
commit308e51f41239c6af0f93b2f1a2b023ad31418a7c (patch)
tree136faa06011d5617500c5d6e1a764d5cf97a90b2 /drivers/media/platform/synopsys/hdmirx
parent0e5bc4863c30d575458e95899dd1ffc3fc74bfea (diff)
media: platform: synopsys: hdmirx: Optimize struct snps_hdmirx_dev
Move cached EDID that takes 512 bytes to the bottom of struct snps_hdmirx_dev to improve CPU's cache locality of the struct. Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'drivers/media/platform/synopsys/hdmirx')
-rw-r--r--drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
index 981ab96cda3c..4d42da7255f3 100644
--- a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
+++ b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
@@ -154,8 +154,8 @@ struct snps_hdmirx_dev {
u32 edid_blocks_written;
u32 cur_fmt_fourcc;
u32 color_depth;
- u8 edid[EDID_NUM_BLOCKS_MAX * EDID_BLOCK_SIZE];
spinlock_t rst_lock; /* to lock register access */
+ u8 edid[EDID_NUM_BLOCKS_MAX * EDID_BLOCK_SIZE];
};
static const struct v4l2_dv_timings cea640x480 = V4L2_DV_BT_CEA_640X480P59_94;