HomeFreeBSD

clock: Simplify subr_ticks and rename

Description

clock: Simplify subr_ticks and rename

  • We can use builtin constants for the size of int and long to simplify definitions.
  • The file should have a .S prefix since we want to run it through the preprocessor, though apparently this happens anyway with .s...
  • Move ticks and ticksl from .data to .bss.

Reported by: jrtc27
Reviewed by: jrtc27, kib, emaste
Fixes: 6b82130e6c9a ("clock: Add a long ticks variable, ticksl")
Differential Revision: https://reviews.freebsd.org/D48420

Details

Provenance
markjAuthored on Fri, Jan 10, 11:59 PM
Reviewer
rG6b82130e6c9a: clock: Add a long ticks variable, ticksl
Differential Revision
D48420: clock: Simplify subr_ticks and rename
Parents
rGf021e3573519: bsnmpwalk: Fix crash on invalid data
Branches
Unknown
Tags
Unknown
References
HEAD -> main