mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] media: Optimize the code using vmalloc_array
@ 2025-10-22  3:20 tanze
  2025-10-22  3:20 ` [PATCH v2 1/3] media: dvb-core: " tanze
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tanze @ 2025-10-22  3:20 UTC (permalink / raw)
  To: mchehab, mingo, hverkuil, tskd08; +Cc: linux-media, linux-kernel, tanze

Change array_size() to vmalloc_array(), Due to vmalloc_array() is optimized better,
uses fewer instructions, and handles overflow more concisely

v1->v2: Update patch #02 #03 due to typos CI robot detected some issues

v1:https://lore.kernel.org/all/20251021143122.268730-1-tanze@kylinos.cn/

tanze (3):
  media: dvb-core: Optimize the code using vmalloc_array
  media: vivid: Optimize the code using vmalloc_array
  media: pt1: Optimize the code using vmalloc_array

 drivers/media/dvb-core/dmxdev.c               | 4 ++--
 drivers/media/dvb-core/dvb_demux.c            | 9 +++++----
 drivers/media/pci/pt1/pt1.c                   | 2 +-
 drivers/media/test-drivers/vivid/vivid-core.c | 2 +-
 4 files changed, 9 insertions(+), 8 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-03  8:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-22  3:20 [PATCH v2 0/3] media: Optimize the code using vmalloc_array tanze
2025-10-22  3:20 ` [PATCH v2 1/3] media: dvb-core: " tanze
2025-10-22  3:20 ` [PATCH v2 2/3] media: vivid: " tanze
2025-10-22  3:20 ` [PATCH v2 3/3] media: pt1: " tanze
2025-11-03  8:41 ` [PATCH v2 0/3] media: " Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®