Skip to content

add *_to_jiffies_timeout helpers to guarantee a minimum duration

Imre Deak alsa-devel dri-devel intel-gfx linux-can linux-media linux-nfs lkml lm-sensors netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 6 repliesIn review
  2. v111 patches 20 repliesSuperseded

Changes in v2 from the cover letter

- s/max_t/min_t/ when clamping to MAX_JIFFY_OFFSET
- change the _min suffix to _timeout (Daniel Vetter)
- add kerneldoc (Daniel Vetter)
- turn the macros into uninlined functions
- don't convert msecs_to_jiffies() users where the intention of +1 was something else (Jean Delvare, Michal Kubecek)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8time: add *_to_jiffies_timeout helpers to guarantee a minimum durationinclude/linux/jiffies.h kernel/time.c+33 -04 replies
2/8sched: msleep: take msecs_to_jiffies_timeout into usekernel/timer.c+2 -20 replies
3/8drm/i915: take msecs_to_jiffies_timeout into usedrivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_i2c.c+2 -20 replies
4/8media/si4713-i2c: take usecs_to_jiffies_timeout into usedrivers/media/radio/si4713-i2c.c+2 -21 reply
5/8usb/isp116x-hcd: take msecs_to_jiffies_timeout into usedrivers/usb/host/isp116x-hcd.c+1 -10 replies
6/8net/sunrpc: take msecs_to_jiffies_timeout into usenet/sunrpc/xprtrdma/verbs.c+2 -20 replies
7/8net/tipc: take msecs_to_jiffies_timeout into usenet/tipc/core.h+1 -10 replies
8/8sound/oxygen_io: take msecs_to_jiffies_timeout into usesound/pci/oxygen/oxygen_io.c+1 -11 reply

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchTakashi IwaiEduardo Valentin
1/8
2/8
3/8
4/8A-b
5/8
6/8
7/8
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] add *_to_jiffies_timeout helpers to guarantee a minimum duration

For a motivation of this pachset see the commit log of patch 1/8.

v2:
- s/max_t/min_t/ when clamping to MAX_JIFFY_OFFSET
- change the _min suffix to _timeout (Daniel Vetter)
- add kerneldoc (Daniel Vetter)
- turn the macros into uninlined functions
- don't convert msecs_to_jiffies() users where the intention of +1 was something else (Jean Delvare, Michal Kubecek)

Imre Deak (8):
time: add *_to_jiffies_timeout helpers to guarantee a minimum
duration
sched: msleep: take msecs_to_jiffies_timeout into use drm/i915: take msecs_to_jiffies_timeout into use media/si4713-i2c: take usecs_to_jiffies_timeout into use usb/isp116x-hcd: take msecs_to_jiffies_timeout into use net/sunrpc: take msecs_to_jiffies_timeout into use net/tipc: take msecs_to_jiffies_timeout into use sound/oxygen_io: take msecs_to_jiffies_timeout into use

 drivers/gpu/drm/i915/intel_drv.h |    2 +-
 drivers/gpu/drm/i915/intel_i2c.c |    2 +-
 drivers/media/radio/si4713-i2c.c |    4 ++--
 drivers/usb/host/isp116x-hcd.c   |    2 +-
 include/linux/jiffies.h          |    6 ++++++
 kernel/time.c                    |   27 +++++++++++++++++++++++++++
 kernel/timer.c                   |    4 ++--
 net/sunrpc/xprtrdma/verbs.c      |    4 ++--
 net/tipc/core.h                  |    2 +-
 sound/pci/oxygen/oxygen_io.c     |    2 +-
 10 files changed, 44 insertions(+), 11 deletions(-)
Signature · 1 line
1.7.10.4