clocksource_hz2mult(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– clocksource_hz2mult(9) πŸ’–

okay bestie, welcome to the Kernel API Manual side of the group chat. this page is short, sweet, and lowkey iconic: it's all about converting a hz frequency into a multiplier. no cap.

✨ NAME ✨

clocksource_hz2mult β€” calculates mult from hz and shift.

πŸ¦‹ SYNOPSIS πŸ¦‹

u32 clocksource_hz2mult (u32 hz , u32 shift_constant );

keep that signature exactly as-is, spaces and all, iykyk.

πŸŽ€ ARGUMENTS πŸŽ€

  • hz β€” Clocksource frequency in Hz.
  • shift_constant β€” Clocksource shift factor.

🌸 DESCRIPTION 🌸

okay so these helper functions convert a hz counter frequency into a timsource multiplier, given the clocksource shift value. that's the whole vibe check, periodt.

πŸ”₯ SEE ALSO πŸ”₯

the extended universe, fr fr:


later bestie πŸ’…βœ¨ β€” source/version: ./include/linux, dated October 2026. 🫢

πŸ“¦ where this page comes from