[PATCH 1/4] arch, x86, tsc deadline clockevent dev: reduce frequency roundoff error

2016-07-10 Thread Nicolai Stange
In setup_APIC_timer(), the registered clockevent device's frequency is calculated by first dividing tsc_khz by TSC_DIVISOR and multiplying it with 1000 afterwards. The multiplication with 1000 is done for converting from kHz to Hz and the division by TSC_DIVISOR is carried out in order to make

[PATCH 1/4] arch, x86, tsc deadline clockevent dev: reduce frequency roundoff error

2016-07-10 Thread Nicolai Stange
In setup_APIC_timer(), the registered clockevent device's frequency is calculated by first dividing tsc_khz by TSC_DIVISOR and multiplying it with 1000 afterwards. The multiplication with 1000 is done for converting from kHz to Hz and the division by TSC_DIVISOR is carried out in order to make