kmemcheck: rip it out
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] / arch / x86 / kernel / cpu / intel.c
index f5347173157c38b7dc4c3680d2071f59d162b0b6..ef796f14f7ae500a9b6c6d33005dfb1274a021d7 100644 (file)
@@ -250,21 +250,6 @@ static void early_init_intel(struct cpuinfo_x86 *c)
        if (c->x86 == 6 && c->x86_model < 15)
                clear_cpu_cap(c, X86_FEATURE_PAT);
 
-#ifdef CONFIG_KMEMCHECK
-       /*
-        * P4s have a "fast strings" feature which causes single-
-        * stepping REP instructions to only generate a #DB on
-        * cache-line boundaries.
-        *
-        * Ingo Molnar reported a Pentium D (model 6) and a Xeon
-        * (model 2) with the same problem.
-        */
-       if (c->x86 == 15)
-               if (msr_clear_bit(MSR_IA32_MISC_ENABLE,
-                                 MSR_IA32_MISC_ENABLE_FAST_STRING_BIT) > 0)
-                       pr_info("kmemcheck: Disabling fast string operations\n");
-#endif
-
        /*
         * If fast string is not enabled in IA32_MISC_ENABLE for any reason,
         * clear the fast string and enhanced fast string CPU capabilities.