]> git.baikalelectronics.ru Git - kernel.git/commit
x86: pre-initialize boot_cpu_data.x86_phys_bits to avoid system_state tests
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 5 Mar 2009 00:16:51 +0000 (16:16 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 5 Mar 2009 13:53:43 +0000 (14:53 +0100)
commit891b9ea89477d2d326d0dbf2065126b9d9ea68ef
tree1270f72fe0aec31b34391deaf9a58d9f3cfe310e
parentb3e3506de2feeaa53e8fa4c22ae75922cb8ddc69
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