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
Unknown Object (File)
Mon, Apr 14, 11:41 AM
Unknown Object (File)
Mon, Apr 14, 6:59 AM
Unknown Object (File)
Mon, Apr 14, 12:53 AM
Unknown Object (File)
Sun, Apr 13, 11:43 PM
Unknown Object (File)
Sun, Apr 13, 11:25 PM
Unknown Object (File)
Sun, Apr 13, 2:46 AM
Unknown Object (File)
Mar 9 2025, 1:26 PM
Unknown Object (File)
Mar 1 2025, 12:30 PM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 10910
Build 11299: arc lint + arc unit

Event Timeline

sys/compat/linuxkpi/common/include/linux/sched.h
161

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
161

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.