Skip to content

Commit 308e51f

Browse files
digetxhverkuil
authored andcommitted
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>
1 parent 0e5bc48 commit 308e51f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ struct snps_hdmirx_dev {
154154
u32 edid_blocks_written;
155155
u32 cur_fmt_fourcc;
156156
u32 color_depth;
157-
u8 edid[EDID_NUM_BLOCKS_MAX * EDID_BLOCK_SIZE];
158157
spinlock_t rst_lock; /* to lock register access */
158+
u8 edid[EDID_NUM_BLOCKS_MAX * EDID_BLOCK_SIZE];
159159
};
160160

161161
static const struct v4l2_dv_timings cea640x480 = V4L2_DV_BT_CEA_640X480P59_94;

0 commit comments

Comments
 (0)