Re: [PATCH v3 1/3] arch, x86, tsc deadline clockevent dev: reduce frequency roundoff error
From: Peter Zijlstra
Date: Wed Jul 13 2016 - 09:50:24 EST
On Wed, Jul 13, 2016 at 03:03:42PM +0200, Nicolai Stange wrote:
> clockevents_config_and_register(levt,
> + (u32)(((u64)tsc_khz * 1000) /
> + TSC_DIVISOR),
> 0xF, ~0UL);
div_u64() perhaps ?