Re: [PATCH] tsc: make calibration refinement more robust

From: Thomas Gleixner
Date: Thu Nov 01 2018 - 11:34:29 EST


Daniel,

On Thu, 1 Nov 2018, Daniel Vacek wrote:

Please use 'x86/tsc:' as prefix. git log path/to/file usually gives you a
reasonable hint about prefixes.

> -#define MAX_RETRIES 5
> -#define SMI_TRESHOLD 50000
> +#define MAX_RETRIES 5
> +#define TSC_THRESHOLD (tsc_khz >> 5)

This breaks pit_hpet_ptimer_calibrate_cpu() because at that point tsc_hkz is 0.

Thanks,

tglx