Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f13a1fd authored by Ben Hutchings's avatar Ben Hutchings Committed by Linus Torvalds
Browse files

cpu: Register a generic CPU device on architectures that currently do not



frv, h8300, m68k, microblaze, openrisc, score, um and xtensa currently
do not register a CPU device.  Add the config option GENERIC_CPU_DEVICES
which causes a generic CPU device to be registered for each present CPU,
and make all these architectures select it.

Richard Weinberger <richard@nod.at> covered UML and suggested using
per_cpu.

Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 024f7846
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ config FRV
	select HAVE_GENERIC_HARDIRQS
	select GENERIC_IRQ_SHOW
	select ARCH_HAVE_NMI_SAFE_CMPXCHG
	select GENERIC_CPU_DEVICES

config ZONE_DMA
	bool
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ config H8300
	select HAVE_IDE
	select HAVE_GENERIC_HARDIRQS
	select GENERIC_IRQ_SHOW
	select GENERIC_CPU_DEVICES

config SYMBOL_PREFIX
	string
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ config M68K
	select HAVE_GENERIC_HARDIRQS
	select GENERIC_IRQ_SHOW
	select ARCH_HAVE_NMI_SAFE_CMPXCHG if RMW_INSNS
	select GENERIC_CPU_DEVICES

config RWSEM_GENERIC_SPINLOCK
	bool
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ config MICROBLAZE
	select GENERIC_IRQ_PROBE
	select GENERIC_IRQ_SHOW
	select GENERIC_PCI_IOMAP
	select GENERIC_CPU_DEVICES

config SWAP
	def_bool n
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ config OPENRISC
	select GENERIC_IRQ_PROBE
	select GENERIC_IRQ_SHOW
	select GENERIC_IOMAP
	select GENERIC_CPU_DEVICES

config MMU
	def_bool y
Loading