aboutsummaryrefslogtreecommitdiffstats
path: root/linux/patches/intel.c.patch
blob: 19f73c424fc06296e51b21c8435568e418affbe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- arch/x86/kernel/cpu/intel.c.new	2022-04-21 10:30:16.303395343 -0400
+++ arch/x86/kernel/cpu/intel.c	2022-04-21 10:31:18.648938081 -0400
@@ -752,6 +752,8 @@
 }
 #endif
 
+#ifndef CONFIG_M486
+
 #define TLB_INST_4K	0x01
 #define TLB_INST_4M	0x02
 #define TLB_INST_2M_4M	0x03
@@ -926,6 +928,14 @@
 	}
 }
 
+#else
+
+static void intel_detect_tlb(struct cpuinfo_x86 *c)
+{
+}
+
+#endif // CONFIG_M486
+
 static const struct cpu_dev intel_cpu_dev = {
 	.c_vendor	= "Intel",
 	.c_ident	= { "GenuineIntel" },