ARM: Defer lookup of machine_type to setup.c
commit6fc31d54443bdc25a8166be15e3920a7e39d195d
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 12 Jan 2011 17:50:42 +0000 (12 17:50 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 15 Feb 2011 16:36:44 +0000 (15 16:36 +0000)
tree70ae632dec09e31e7db475de53ee620c2bf1c183
parentebf53826e105f488f4f628703a108e98940d1dc5
ARM: Defer lookup of machine_type to setup.c

Since the debug macros no longer depend on the machine type information,
the machine type lookup can be deferred to setup_arch() in setup.c which
simplifies the code somewhat.

We also move the __error_a functionality into setup.c for displaying a
message when a bad machine ID is passed to the kernel via the LL debug
code.  We also log this into the kernel ring buffer which makes it
possible to retrieve the message via a debugger.

Original idea from Grant Likely.

Acked-by: Grant Likely <grant.likely@secretlab.ca>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/head-common.S
arch/arm/kernel/head-nommu.S
arch/arm/kernel/head.S
arch/arm/kernel/setup.c