x86: pre-initialize boot_cpu_data.x86_phys_bits to avoid system_state tests
commited26dbe5ae045e5bf95c6dc27497397a3fde52e1
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 5 Mar 2009 00:16:51 +0000 (4 16:16 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 5 Mar 2009 13:53:43 +0000 (5 14:53 +0100)
tree1270f72fe0aec31b34391deaf9a58d9f3cfe310e
parentdc16ecf7fd1fad7436832121435d4926a81d469e
x86: pre-initialize boot_cpu_data.x86_phys_bits to avoid system_state tests

Impact: cleanup, micro-optimization

Pre-initialize boot_cpu_data.x86_phys_bits to a reasonable default
to remove the use of system_state tests in __virt_addr_valid()
and __phys_addr().

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup.c
arch/x86/mm/ioremap.c