summaryrefslogtreecommitdiffstats
path: root/arch/tile
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@mellanox.com>2016-06-07 16:49:08 -0400
committerChris Metcalf <cmetcalf@mellanox.com>2016-06-07 16:55:20 -0400
commit9fbd49cff0f02e122459fe4899ff0c136cdebcd2 (patch)
tree20b51a2269f005528eeb0b7d5a6de82699f05305 /arch/tile
parentaf8c34ce6ae32addda3788d54a7e340cad22516b (diff)
downloadlinux-9fbd49cff0f02e122459fe4899ff0c136cdebcd2.tar.bz2
tile: allow disabling CONFIG_EARLY_PRINTK
In that case, any users of early_panic() end up calling panic(). Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
Diffstat (limited to 'arch/tile')
-rw-r--r--arch/tile/include/asm/setup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/tile/include/asm/setup.h b/arch/tile/include/asm/setup.h
index e98909033e5b..2a0347af0702 100644
--- a/arch/tile/include/asm/setup.h
+++ b/arch/tile/include/asm/setup.h
@@ -25,7 +25,12 @@
#define MAXMEM_PFN PFN_DOWN(MAXMEM)
int tile_console_write(const char *buf, int count);
+
+#ifdef CONFIG_EARLY_PRINTK
void early_panic(const char *fmt, ...);
+#else
+#define early_panic panic
+#endif
/* Init-time routine to do tile-specific per-cpu setup. */
void setup_cpu(int boot);