forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-16 50a212ec906f7524620675f0c57357691c26c81f
kernel/arch/mips/include/asm/mach-cavium-octeon/cpu-feature-overrides.h
....@@ -45,7 +45,6 @@
4545 #define cpu_has_ic_fills_f_dc 0
4646 #define cpu_has_64bits 1
4747 #define cpu_has_octeon_cache 1
48
-#define cpu_has_saa octeon_has_saa()
4948 #define cpu_has_mips32r1 1
5049 #define cpu_has_mips32r2 1
5150 #define cpu_has_mips64r1 1
....@@ -60,7 +59,6 @@
6059
6160 #define cpu_has_rixi (cpu_data[0].cputype != CPU_CAVIUM_OCTEON)
6261
63
-#define ARCH_HAS_IRQ_PER_CPU 1
6462 #define ARCH_HAS_SPINLOCK_PREFETCH 1
6563 #define spin_lock_prefetch(x) prefetch(x)
6664 #define PREFETCH_STRIDE 128
....@@ -72,13 +70,6 @@
7270 */
7371 #define ARCH_HAS_USABLE_BUILTIN_POPCOUNT 1
7472 #endif
75
-
76
-static inline int octeon_has_saa(void)
77
-{
78
- int id;
79
- asm volatile ("mfc0 %0, $15,0" : "=r" (id));
80
- return id >= 0x000d0300;
81
-}
8273
8374 /*
8475 * The last 256MB are reserved for device to device mappings and the