Skip to contentSkip to conversation

m68k: selection of HAVE_GENERIC_HARDIRQS is not MMU specific

PATCH In review [email protected] 2 participants 2 messages Oct 21, 2011 m68k architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68k: selection of HAVE_GENERIC_HARDIRQS is not MMU specific

From: Greg Ungerer <[email protected]>

The selection of the CONFIG_HAVE_GENERIC_HARDIRQS option is not specific to the MMU being present and enabled. It is dependant on what CPU we are compiling for. The non-MMU 68000 and ColdFire family CPUs use generic interrupts, so enable it for them only.

---
 arch/m68k/Kconfig     |    1 -
 arch/m68k/Kconfig.cpu |    3 +++
 2 files changed, 3 insertions(+), 1 deletions(-)
arch/m68k/Kconfig +0 -1
index 26ed01b..9829235 100644
@@ -3,7 +3,6 @@ config M68K
 	default y
 	select HAVE_IDE
 	select HAVE_AOUT if MMU
-	select HAVE_GENERIC_HARDIRQS if !MMU
 	select GENERIC_IRQ_SHOW if !MMU
 	select ARCH_HAVE_NMI_SAFE_CMPXCHG if RMW_INSNS
 
arch/m68k/Kconfig.cpu +3 -0
index 9af9e68..383c508 100644
@@ -3,6 +3,7 @@ comment "Processor Type"
 config M68000
 	bool
 	select CPU_HAS_NO_BITFIELDS
+	select HAVE_GENERIC_HARDIRQS
 	help
 	  The Freescale (was Motorola) 68000 CPU is the first generation of
 	  the well known M68K family of processors. The CPU core as well as
@@ -13,6 +14,7 @@ config M68000
 config MCPU32
 	bool
 	select CPU_HAS_NO_BITFIELDS
+	select HAVE_GENERIC_HARDIRQS
 	help
 	  The Freescale (was then Motorola) CPU32 is a CPU core that is
 	  based on the 68020 processor. For the most part it is used in
@@ -23,6 +25,7 @@ config COLDFIRE
 	select GENERIC_GPIO
 	select ARCH_REQUIRE_GPIOLIB
 	select CPU_HAS_NO_BITFIELDS
+	select HAVE_GENERIC_HARDIRQS
 	help
 	  The Freescale ColdFire family of processors is a modern derivitive
 	  of the 68000 processor family. They are mainly targeted at embedded
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 16 lines · On Fri, Oct 21, 2011 at 09:04, <[email protected]> wrote:

The selection of the CONFIG_HAVE_GENERIC_HARDIRQS option is not specific to the MMU being present and enabled. It is dependant on what CPU we are compiling for. The non-MMU 68000 and ColdFire family CPUs use generic interrupts, so enable it for them only.

---
 arch/m68k/Kconfig     |    1 -
 arch/m68k/Kconfig.cpu |    3 +++

 2 files changed, 3 insertions(+), 1 deletions(-)
arch/m68k/Kconfig +0 -0
index 26ed01b..9829235 100644
@@ -3,7 +3,6 @@ config M68K
Quoted 6 lines

       default y
       select HAVE_IDE
       select HAVE_AOUT if MMU
-       select HAVE_GENERIC_HARDIRQS if !MMU select GENERIC_IRQ_SHOW if !MMU
       select ARCH_HAVE_NMI_SAFE_CMPXCHG if RMW_INSNS

This will be fixed Really Soon Now (TM).

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds