x86, sched: Bail out of frequency invariance if turbo frequency is unknown
authorGiovanni Gherdovich <ggherdovich@suse.cz>
Sun, 31 May 2020 18:24:52 +0000 (20:24 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 15 Jun 2020 12:10:02 +0000 (14:10 +0200)
commit51beea8862a3095559862df39554f05042e1195b
treedef1b72a6ceaf020d21c10721ca5c0891bf9cce4
parente2b0d619b400ae326f954a018a1d65d736c237c5
x86, sched: Bail out of frequency invariance if turbo frequency is unknown

There may be CPUs that support turbo boost but don't declare any turbo
ratio, i.e. their MSR_TURBO_RATIO_LIMIT is all zeroes. In that condition
scale-invariant calculations can't be performed.

Fixes: 1567c3e3467c ("x86, sched: Add support for frequency invariance")
Suggested-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Giovanni Gherdovich <ggherdovich@suse.cz>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Link: https://lkml.kernel.org/r/20200531182453.15254-3-ggherdovich@suse.cz
arch/x86/kernel/smpboot.c