lkml.org 
[lkml]   [2016]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 1/3] arch, x86, tsc deadline clockevent dev: reduce frequency roundoff error
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 ?

\
 
 \ /
  Last update: 2016-07-13 16:21    [W:0.055 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site