diff options
| author | Ricardo Ribalda <ribalda@chromium.org> | 2026-05-13 14:49:25 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-05-21 22:14:08 +0300 |
| commit | a3d78e74dd3ed04797ea351edb7f0a19b961c063 (patch) | |
| tree | 2b21c36682828b3d05b52bae0dd010b843beb43f /include/linux/timerqueue.h | |
| parent | 0491c93a510c32eaf8ed404b99a447e10c30291e (diff) | |
| download | linux-a3d78e74dd3ed04797ea351edb7f0a19b961c063.tar.xz | |
media: uvcvideo: Only do uvc_video_get_time() if needed
There is no need to calculate the current time if the sample is going to
be filtered.
Move the assignment close to uvc_video_clock_add_sample().
Suggested-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Tested-by: Yunke Cao <yunkec@google.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Link: https://patch.msgid.link/20260513-uvc-hwtimestamp-v3-6-7a64838b0b02@chromium.org
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
