diff options
author | Greg Ungerer <gerg@linux-m68k.org> | 2016-08-29 17:12:32 +1000 |
---|---|---|
committer | Greg Ungerer <gerg@linux-m68k.org> | 2016-09-26 12:02:59 +1000 |
commit | 2a744007c332f9d604b95aaecb106596c52ab001 (patch) | |
tree | 12c4d7fa38f921efe907e148f040dcd1c8569b20 | |
parent | 6d3ec8056208a799abd5ff434cbfc4db2be38140 (diff) | |
download | blackbird-obmc-linux-2a744007c332f9d604b95aaecb106596c52ab001.tar.gz blackbird-obmc-linux-2a744007c332f9d604b95aaecb106596c52ab001.zip |
m68k: don't panic if no hardware FPU defined
If we boot up and find no hardware FPU we panic and die.
Change this behavior to be that if we boot up and we _expect_ a hardware
FPU to be present then panic. Don't panic if we don't actually expect to
have any hardware FPU.
This lets us compile a kernel without FPU if we really choose too.
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
-rw-r--r-- | arch/m68k/kernel/setup_mm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c index adbb80698da2..9afad2b64c13 100644 --- a/arch/m68k/kernel/setup_mm.c +++ b/arch/m68k/kernel/setup_mm.c @@ -549,7 +549,7 @@ module_init(proc_hardware_init); void check_bugs(void) { -#ifndef CONFIG_M68KFPU_EMU +#if defined(CONFIG_FPU) && !defined(CONFIG_M68KFPU_EMU) if (m68k_fputype == 0) { pr_emerg("*** YOU DO NOT HAVE A FLOATING POINT UNIT, " "WHICH IS REQUIRED BY LINUX/M68K ***\n"); |