RISC-V: Declare cpu_ops_spinwait in <asm/cpu_ops.h>
[platform/kernel/linux-starfive.git] / arch / riscv / kernel / cpu_ops.c
index 170d07e..f92c0e6 100644 (file)
@@ -15,9 +15,7 @@
 const struct cpu_operations *cpu_ops[NR_CPUS] __ro_after_init;
 
 extern const struct cpu_operations cpu_ops_sbi;
-#ifdef CONFIG_RISCV_BOOT_SPINWAIT
-extern const struct cpu_operations cpu_ops_spinwait;
-#else
+#ifndef CONFIG_RISCV_BOOT_SPINWAIT
 const struct cpu_operations cpu_ops_spinwait = {
        .name           = "",
        .cpu_prepare    = NULL,