x86/tsc: Fix ART for TSC_KNOWN_FREQ

am: 5ec98e6ffd

Change-Id: If24320eee8137c3b7b833822d095c69d077cf781
This commit is contained in:
Peter Zijlstra
2017-03-22 12:08:40 +00:00
committed by android-build-merger

View File

@@ -1287,6 +1287,8 @@ static int __init init_tsc_clocksource(void)
* exporting a reliable TSC.
*/
if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) {
if (boot_cpu_has(X86_FEATURE_ART))
art_related_clocksource = &clocksource_tsc;
clocksource_register_khz(&clocksource_tsc, tsc_khz);
return 0;
}