Page MenuHomeFreeBSD

Add some more time-related functions to the LinuxKPI
ClosedPublic

Authored by markj on Aug 5 2017, 3:15 AM.
Tags
None
Referenced Files
F137120678: D11871.id31606.diff
Fri, Nov 21, 4:45 AM
F137120500: D11871.id31678.diff
Fri, Nov 21, 4:44 AM
F137119703: D11871.id.diff
Fri, Nov 21, 4:41 AM
F137119057: D11871.id31746.diff
Fri, Nov 21, 4:38 AM
F137118776: D11871.diff
Fri, Nov 21, 4:37 AM
Unknown Object (File)
Sun, Nov 16, 5:01 AM
Unknown Object (File)
Sun, Nov 9, 7:06 PM
Unknown Object (File)
Fri, Nov 7, 6:29 AM
Subscribers

Details

Summary
  • round_jiffies_up*(): just use the existing round_jiffies(), which unconditionally rounds up
  • local_clock()
  • __setup_timer(), which takes a flags argument. Allow and ignore TIMER_IRQSAFE since nothing in the LinuxKPI runs in hard interrupt context

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/compat/linuxkpi/common/include/linux/sched.h
160 ↗(On Diff #31606)

Do you need to cast this multiplication?

  • Cast multiplication, add needed linux/timer.h include and sort includes.
markj marked an inline comment as done.Aug 6 2017, 6:49 PM
markj added inline comments.
sys/compat/linuxkpi/common/include/linux/sched.h
160 ↗(On Diff #31606)

For architectures that have a 32-bit time_t, I think so.

This revision is now accepted and ready to land.Aug 7 2017, 11:54 AM
This revision was automatically updated to reflect the committed changes.
markj marked an inline comment as done.