summaryrefslogtreecommitdiffstats
path: root/arch/arc/include
diff options
context:
space:
mode:
authorVineet Gupta2014-09-04 07:27:33 +0200
committerVineet Gupta2014-09-27 11:19:01 +0200
commit619f30188ff0d10fccc3cd952a79cb56ff62db54 (patch)
tree9bf015ba703fdd05d781b370792c0bba1f98d373 /arch/arc/include
parentLinux 3.17-rc4 (diff)
downloadkernel-qcow2-linux-619f30188ff0d10fccc3cd952a79cb56ff62db54.tar.gz
kernel-qcow2-linux-619f30188ff0d10fccc3cd952a79cb56ff62db54.tar.xz
kernel-qcow2-linux-619f30188ff0d10fccc3cd952a79cb56ff62db54.zip
ARC: Allow SMP kernel to build/boot on UP-only infrastructure
In light of recent SNAFU with SMP build, allow simple platform to build as SMP but run UP. * Remove the dependence on simulation SMP extension to enable quick build/test iterations of SMP kernel. * In absence of platform SMP registration, prevent the NULL smp feature name from borkign the system Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include')
-rw-r--r--arch/arc/include/asm/smp.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arc/include/asm/smp.h b/arch/arc/include/asm/smp.h
index 5d06eee43ea9..3845b9e94f69 100644
--- a/arch/arc/include/asm/smp.h
+++ b/arch/arc/include/asm/smp.h
@@ -59,7 +59,15 @@ struct plat_smp_ops {
/* TBD: stop exporting it for direct population by platform */
extern struct plat_smp_ops plat_smp_ops;
-#endif /* CONFIG_SMP */
+#else /* CONFIG_SMP */
+
+static inline void smp_init_cpus(void) {}
+static inline const char *arc_platform_smp_cpuinfo(void)
+{
+ return "";
+}
+
+#endif /* !CONFIG_SMP */
/*
* ARC700 doesn't support atomic Read-Modify-Write ops.