hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/mips/kernel/setup.c
....@@ -11,6 +11,8 @@
1111 * Copyright (C) 2000, 2001, 2002, 2007 Maciej W. Rozycki
1212 */
1313 #include <linux/init.h>
14
+#include <linux/cpu.h>
15
+#include <linux/delay.h>
1416 #include <linux/ioport.h>
1517 #include <linux/export.h>
1618 #include <linux/screen_info.h>
....@@ -154,10 +156,6 @@
154156 pr_err("initrd start must be page aligned\n");
155157 goto disable;
156158 }
157
- if (initrd_start < PAGE_OFFSET) {
158
- pr_err("initrd start < PAGE_OFFSET\n");
159
- goto disable;
160
- }
161159
162160 /*
163161 * Sanitize initrd addresses. For example firmware
....@@ -169,6 +167,11 @@
169167 end = __pa(initrd_end);
170168 initrd_end = (unsigned long)__va(end);
171169 initrd_start = (unsigned long)__va(__pa(initrd_start));
170
+
171
+ if (initrd_start < PAGE_OFFSET) {
172
+ pr_err("initrd start < PAGE_OFFSET\n");
173
+ goto disable;
174
+ }
172175
173176 ROOT_DEV = Root_RAM0;
174177 return PFN_UP(end);
....@@ -828,3 +831,14 @@
828831 }
829832 early_param("nocoherentio", setnocoherentio);
830833 #endif
834
+
835
+void __init arch_cpu_finalize_init(void)
836
+{
837
+ unsigned int cpu = smp_processor_id();
838
+
839
+ cpu_data[cpu].udelay_val = loops_per_jiffy;
840
+ check_bugs32();
841
+
842
+ if (IS_ENABLED(CONFIG_CPU_R4X00_BUGS64))
843
+ check_bugs64();
844
+}