forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/ia64/kernel/sal.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * System Abstraction Layer (SAL) interface routines.
34 *
....@@ -17,6 +18,7 @@
1718 #include <asm/page.h>
1819 #include <asm/sal.h>
1920 #include <asm/pal.h>
21
+#include <asm/xtp.h>
2022
2123 __cacheline_aligned DEFINE_SPINLOCK(sal_lock);
2224 unsigned long sal_platform_features;
....@@ -109,13 +111,6 @@
109111 sal_revision = SAL_VERSION_CODE(2, 8);
110112 sal_version = SAL_VERSION_CODE(0, 0);
111113 }
112
-
113
- if (ia64_platform_is("sn2") && (sal_revision == SAL_VERSION_CODE(2, 9)))
114
- /*
115
- * SGI Altix has hard-coded version 2.9 in their prom
116
- * but they actually implement 3.2, so let's fix it here.
117
- */
118
- sal_revision = SAL_VERSION_CODE(3, 2);
119114 }
120115
121116 static void __init
....@@ -255,7 +250,7 @@
255250 * Send ourselves a timer interrupt, wait until it's reported, and see
256251 * if SAL_CACHE_FLUSH drops it.
257252 */
258
- platform_send_ipi(cpu, IA64_TIMER_VECTOR, IA64_IPI_DM_INT, 0);
253
+ ia64_send_ipi(cpu, IA64_TIMER_VECTOR, IA64_IPI_DM_INT, 0);
259254
260255 while (!ia64_get_irr(IA64_TIMER_VECTOR))
261256 cpu_relax();